/// <summary> /// Create a deep clone of the member data object. /// </summary> public object Clone() { return(new MemberData() { Constructors = Constructors?.Select(c => (string[])c.Clone()).ToArray(), Events = (JsonDictionary <string, EventData>)Events?.Clone(), Fields = (JsonDictionary <string, FieldData>)Fields?.Clone(), Indexers = Indexers?.Select(i => (IndexerData)i.Clone()).ToArray(), Methods = (JsonDictionary <string, MethodData>)Methods?.Clone(), NestedTypes = (JsonDictionary <string, TypeData>)NestedTypes?.Clone(), Properties = (JsonDictionary <string, PropertyData>)Properties?.Clone(), }); }
// set the default values // the default values are those used in the schema field // definition so only need to clone the schema field def public SchemaDictionaryCell DefaultValues() { return(Fields.Clone()); }