예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = ID.HasValue ? ID.GetHashCode() : 0;
         hashCode = (hashCode * 397) ^ (InstantiationInfo != null ? InstantiationInfo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Available.GetHashCode();
         return(hashCode);
     }
 }
 public Expression Create(InstantiationInfo instantiationInfo, ResolveExpressionContext context, Expression[] parameterExpressions)
 {
     return(Create(instantiationInfo.MustBeOfType <T>(nameof(instantiationInfo)), context, parameterExpressions));
 }