Exemple #1
0
 /// <summary>
 ///   Equalses the specified other.
 /// </summary>
 /// <param name="other"> The other. </param>
 /// <returns> </returns>
 public bool Equals(CacheableInvocation other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(base.Equals(other) &&
            other._argCount == _argCount &&
            Equals(other._argNames, _argNames) &&
            other._staticContext.Equals(_staticContext) &&
            Equals(other._context, _context) &&
            other._convertExplict.Equals(_convertExplict) &&
            Equals(other._convertType, _convertType));
 }
 /// <summary>
 ///   Equalses the specified other.
 /// </summary>
 /// <param name="other"> The other. </param>
 /// <returns> </returns>
 public bool Equals(CacheableInvocation other)
 {
     if (ReferenceEquals(null, other)) {
         return false;
     }
     if (ReferenceEquals(this, other)) {
         return true;
     }
     return base.Equals(other)
         && other._argCount == _argCount
             && Equals(other._argNames, _argNames)
                 && other._staticContext.Equals(_staticContext)
                     && Equals(other._context, _context)
                         && other._convertExplict.Equals(_convertExplict)
                             && Equals(other._convertType, _convertType);
 }
 /// <summary>
 ///   Initializes a new instance of the <see cref="ImpromptuPropertyDescriptor" /> class.
 /// </summary>
 /// <param name="name"> The name. </param>
 public ImpromptuPropertyDescriptor(string name) : base(name, null)
 {
     _invokeGet = new CacheableInvocation(InvocationKind.Get, name);
     _invokeSet = new CacheableInvocation(InvocationKind.Set, name);
 }
 /// <summary>
 ///   Initializes a new instance of the <see cref="ImpromptuPropertyDescriptor" /> class.
 /// </summary>
 /// <param name="name"> The name. </param>
 public ImpromptuPropertyDescriptor(string name)
     : base(name, null)
 {
     _invokeGet = new CacheableInvocation(InvocationKind.Get, name);
     _invokeSet = new CacheableInvocation(InvocationKind.Set, name);
 }