internal XmlEntityTypeBuilder(XmlEntityTypeInfo xmlEntityTypeInfo, XmlModelTypeInfo xmlModelTypeInfo, XmlDataModel xmlModelTypeBuilder) { _xmlEntityTypeInfo = xmlEntityTypeInfo; _xmlModelTypeInfo = xmlModelTypeInfo; _xmlModelTypeBuilder = xmlModelTypeBuilder; _xmlModelTypeBuilder.XmlModelInfo.SerializationTypesKeyedByName[_entityType.Name] = _entityType; }
/// <summary>Initializes a new instance of the <see cref="XmlDataSerializer"/> class.</summary> /// <param name="xmlDataModel"> /// The xml data model that allows to define the shape of xml entities, /// the relation between them and how they are mapped during XML serialization process. /// </param> public XmlDataSerializer(XmlDataModel xmlDataModel) { XmlDataModel = xmlDataModel; }