コード例 #1
0
        protected internal virtual bool IsEquivalent(StatFunction statFunction)
        {
            if (statFunction == null)
            {
                return(false);
            }

            return((this.GetType() == statFunction.GetType()) &&
                   (this.SourcePropertyName == statFunction.SourcePropertyName));
        }
コード例 #2
0
        protected internal virtual bool IsEquivalent(StatFunction statFunction)
        {
            if (object.ReferenceEquals(statFunction, null))
            {
                return(false);
            }

            if (object.ReferenceEquals(statFunction, this))
            {
                return(true);
            }

            return((this.GetType() == statFunction.GetType()) &&
                   (this.SourcePropertyName == statFunction.SourcePropertyName));
        }
コード例 #3
0
ファイル: StatFunction.cs プロジェクト: wangws556/duoduo-chat
    protected internal virtual bool IsEquivalent( StatFunction statFunction )
    {
      if( statFunction == null )
        return false;

      return ( this.GetType() == statFunction.GetType() ) &&
             ( this.SourcePropertyName == statFunction.SourcePropertyName );
    }
コード例 #4
0
    protected internal virtual bool IsEquivalent( StatFunction statFunction )
    {
      if( object.ReferenceEquals( statFunction, null ) )
        return false;

      if( object.ReferenceEquals( statFunction, this ) )
        return true;

      return ( this.GetType() == statFunction.GetType() ) &&
             ( this.SourcePropertyName == statFunction.SourcePropertyName );
    }