public bool Equals(AstGenericTypeWithArguments type)
 {
     return(type != null &&
            Equals(type.PrimaryType, this.PrimaryType) &&
            Enumerable.SequenceEqual(type.TypeArguments, this.TypeArguments));
 }
 public bool Equals(AstGenericTypeWithArguments type)
 {
     return type != null
         && Equals(type.PrimaryType, this.PrimaryType)
         && Enumerable.SequenceEqual(type.TypeArguments, this.TypeArguments);
 }
 protected virtual void AppendGenericTypeWithArguments(StringBuilder builder, AstGenericTypeWithArguments genericTypeWithArguments)
 {
     builder.Append(genericTypeWithArguments);
 }
Exemple #4
0
 private IAstTypeReference RemapArgumentTypesForGeneric(AstGenericTypeWithArguments generic, Func<IAstTypeReference, IAstTypeReference> remap)
 {
     var arguments = generic.TypeArguments;
     var remapped = RemapAll(arguments, remap);
     return !remapped.Item2 ? generic : new AstGenericTypeWithArguments(generic.PrimaryType, remapped.Item1);
 }