public ParsedProperty Clone() { ParsedProperty parsedPropety = (ParsedProperty)this.MemberwiseClone(); parsedPropety.Type = Type.Clone(); return(parsedPropety); }
public ParsedField Clone() { ParsedField newField = (ParsedField)this.MemberwiseClone(); newField.Type = Type.Clone(); return(newField); }
public ParsedType Clone() { ParsedType typeToReturn = new ParsedType(); typeToReturn.Name = Name; typeToReturn.IsInterface = IsInterface; typeToReturn.NumberOfElements = NumberOfElements; if (GenericType != null) { typeToReturn.GenericType = GenericType.Clone(); } typeToReturn.GenericRestrictions = new List <string>(); typeToReturn.GenericRestrictions.AddRange(GenericRestrictions); return(typeToReturn); }
public ParsedMethod Clone() { ParsedMethod parsedMethod = (ParsedMethod)this.MemberwiseClone(); parsedMethod.Type = Type.Clone(); parsedMethod.ArgumentList = new List <ParsedField>(); parsedMethod.GenericTypes = new List <ParsedType>(); foreach (ParsedField argument in ArgumentList) { parsedMethod.ArgumentList.Add(argument.Clone()); } foreach (ParsedType genericType in GenericTypes) { parsedMethod.GenericTypes.Add(genericType.Clone()); } return(parsedMethod); }