public void AddAnonymousType(string identifier, XmlSchemaElement parentElement, ClrTypeReference parentElementTypeRef) { AnonymousType at = new AnonymousType(); at.identifier = identifier; at.typeRefence = parentElementTypeRef; at.parentElement = parentElement; anonymousTypes.Add(at); }
public void AddComplexRestrictedContentType(XmlSchemaComplexType wrappingType, ClrTypeReference wrappingTypeRef) { string identifier = NameGenerator.MakeValidIdentifier(wrappingType.Name); AnonymousType at = new AnonymousType(); at.identifier = identifier; at.typeRefence = wrappingTypeRef; at.wrappingType = wrappingType; anonymousTypes.Add(at); }
public void AddAnonymousType(string identifier, XmlSchemaElement parentElement, ClrTypeReference parentElementTypeRef) { AnonymousType at = new AnonymousType() { identifier = identifier, typeRefence = parentElementTypeRef, parentElement = parentElement }; this.anonymousTypes.Add(at); }
public void AddComplexRestrictedContentType(XmlSchemaComplexType wrappingType, ClrTypeReference wrappingTypeRef) { string identifier = NameGenerator.MakeValidIdentifier(wrappingType.Name, this.ConfigSettings.NameMangler2); AnonymousType at = new AnonymousType() { identifier = identifier, typeRefence = wrappingTypeRef, wrappingType = wrappingType }; this.anonymousTypes.Add(at); }