C# Class System.Runtime.Serialization.XmlFormatReaderGenerator.XmlFormatReaderGenerator.CriticalHelper

显示文件 Open project: dotnet/corefx

Public Methods

Method Description
GenerateClassReader ( ClassDataContract classContract ) : XmlFormatClassReaderDelegate
GenerateCollectionReader ( CollectionDataContract collectionContract ) : XmlFormatCollectionReaderDelegate
GenerateGetOnlyCollectionReader ( CollectionDataContract collectionContract ) : XmlFormatGetOnlyCollectionReaderDelegate

Private Methods

Method Description
CreateObject ( ClassDataContract classContract ) : void
GenerateCollectionReaderHelper ( CollectionDataContract collectionContract, bool isGetOnlyCollection ) : CodeGenerator
GetRequiredMembers ( ClassDataContract contract, int &firstRequiredMember ) : bool[]
GetRequiredMembers ( ClassDataContract contract, bool requiredMembers ) : int
HandleUnexpectedItemInCollection ( LocalBuilder iterator ) : void
InitArgs ( ) : void
InternalDeserialize ( LocalBuilder value, Type type, string name, string ns ) : void
InvokeOnDeserialized ( ClassDataContract classContract ) : void
InvokeOnDeserializing ( ClassDataContract classContract ) : void
IsEndElement ( ) : void
IsStartElement ( ) : void
IsStartElement ( ArgBuilder nameArg, ArgBuilder nsArg ) : void
ReadClass ( ClassDataContract classContract ) : void
ReadCollection ( CollectionDataContract collectionContract ) : void
ReadCollectionItem ( CollectionDataContract collectionContract, Type itemType, string itemName, string itemNs ) : LocalBuilder
ReadGetOnlyCollection ( CollectionDataContract collectionContract ) : void
ReadISerializable ( ClassDataContract classContract ) : void
ReadMembers ( ClassDataContract classContract, bool requiredMembers, Label memberLabels, LocalBuilder memberIndexLocal, LocalBuilder requiredIndexLocal ) : int
ReadMembers ( ClassDataContract classContract, LocalBuilder extensionDataLocal ) : void
ReadValue ( Type type, string name, string ns ) : LocalBuilder
StoreCollectionValue ( LocalBuilder collection, LocalBuilder value, CollectionDataContract collectionContract ) : void
ThrowUnexpectedStateException ( System.Xml.XmlNodeType expectedState ) : void
ThrowValidationException ( ) : void
ThrowValidationException ( string msg ) : void
TryReadPrimitiveArray ( Type type, Type itemType, LocalBuilder size ) : bool
WrapNullableObject ( LocalBuilder innerValue, LocalBuilder outerValue, int nullables ) : void

Method Details

GenerateClassReader() public method

public GenerateClassReader ( ClassDataContract classContract ) : XmlFormatClassReaderDelegate
classContract ClassDataContract
return XmlFormatClassReaderDelegate

GenerateCollectionReader() public method

public GenerateCollectionReader ( CollectionDataContract collectionContract ) : XmlFormatCollectionReaderDelegate
collectionContract CollectionDataContract
return XmlFormatCollectionReaderDelegate

GenerateGetOnlyCollectionReader() public method

public GenerateGetOnlyCollectionReader ( CollectionDataContract collectionContract ) : XmlFormatGetOnlyCollectionReaderDelegate
collectionContract CollectionDataContract
return XmlFormatGetOnlyCollectionReaderDelegate