C# 클래스 Antmicro.Migrant.ObjectWriter

파일 보기 프로젝트 열기: antmicro/Migrant 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CallPostSerializationHooksUsingReflection void
CheckForNullOrTransientnessAndWriteDeferredReference void
CheckLegality void
CheckLegality void
CheckLegalityAndWriteDeferredReference void
Completed void
GetDelegatesWithNonTransientTargets System.Delegate[]
HandleNewReference void
InvokeCallbacksAndExecute void
IsTypeIllegal bool
LinkSpecialWrite WriteMethodDelegate
PrepareForNextWrite void
SurrogateObjectIfNeeded object
TouchAndWriteTypeId int
TouchAndWriteTypeIdWithFullStamp int
TouchAndWriteTypeIdWithFullStampInner int
TouchAndWriteTypeIdWithSimpleStamp int
TryWriteObjectInline bool
WriteArray void
WriteArrayMetadata void
WriteArrayRowRecursive void
WriteDeferredReference void
WriteEnumerable void
WriteField void
WriteObjectInner void
WriteObjectUsingReflection void
WriteObjectsFields void
WriteSpecialObject bool
WriteValueType void

공개 메소드들

메소드 설명
Flush ( ) : void
ObjectWriter ( Stream stream, Serializer writeMethods, Action preSerializationCallback = null, Action postSerializationCallback = null, SwapList surrogatesForObjects = null, SwapList objectsForSurrogates = null, bool treatCollectionAsUserObject = false, bool useBuffering = true, bool disableStamping = false, ReferencePreservation referencePreservation = ReferencePreservation.Preserve ) : System
ReuseWithNewStream ( Stream stream ) : void
WriteObject ( object o ) : void

비공개 메소드들

메소드 설명
CallPostSerializationHooksUsingReflection ( object o ) : void
CheckForNullOrTransientnessAndWriteDeferredReference ( object o, Type objectFormalType = null ) : void
CheckLegality ( Type type ) : void
CheckLegality ( object obj, object>.Dictionary parents ) : void
CheckLegalityAndWriteDeferredReference ( object o ) : void
Completed ( object o ) : void
GetDelegatesWithNonTransientTargets ( MulticastDelegate mDelegate ) : System.Delegate[]
HandleNewReference ( object o, int refId ) : void
InvokeCallbacksAndExecute ( object o, Action action ) : void
IsTypeIllegal ( Type type ) : bool
LinkSpecialWrite ( Type actualType ) : WriteMethodDelegate
PrepareForNextWrite ( ) : void
SurrogateObjectIfNeeded ( object o, int refId ) : object
TouchAndWriteTypeId ( Type type ) : int
TouchAndWriteTypeIdWithFullStamp ( Type type ) : int
TouchAndWriteTypeIdWithFullStampInner ( Antmicro.Migrant.TypeDescriptor typeDescriptor ) : int
TouchAndWriteTypeIdWithSimpleStamp ( Type type ) : int
TryWriteObjectInline ( object o ) : bool
WriteArray ( Type elementFormalType, Array array ) : void
WriteArrayMetadata ( Array array ) : void
WriteArrayRowRecursive ( Array array, int currentDimension, Type elementFormalType, int position ) : void
WriteDeferredReference ( object o ) : void
WriteEnumerable ( Type elementFormalType, int count, IEnumerable collection ) : void
WriteField ( Type formalType, object value ) : void
WriteObjectInner ( object o ) : void
WriteObjectUsingReflection ( ObjectWriter objectWriter, object o ) : void

Writes the object using reflection. REMARK: this method is not thread-safe!

WriteObjectsFields ( object o, Type type ) : void
WriteSpecialObject ( object o, bool checkForCollections ) : bool
WriteValueType ( Type formalType, object value ) : void

메소드 상세

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

ObjectWriter() 공개 메소드

public ObjectWriter ( Stream stream, Serializer writeMethods, Action preSerializationCallback = null, Action postSerializationCallback = null, SwapList surrogatesForObjects = null, SwapList objectsForSurrogates = null, bool treatCollectionAsUserObject = false, bool useBuffering = true, bool disableStamping = false, ReferencePreservation referencePreservation = ReferencePreservation.Preserve ) : System
stream Stream
writeMethods Serializer
preSerializationCallback Action
postSerializationCallback Action
surrogatesForObjects Antmicro.Migrant.Utilities.SwapList
objectsForSurrogates Antmicro.Migrant.Utilities.SwapList
treatCollectionAsUserObject bool
useBuffering bool
disableStamping bool
referencePreservation ReferencePreservation
리턴 System

ReuseWithNewStream() 공개 메소드

public ReuseWithNewStream ( Stream stream ) : void
stream Stream
리턴 void

WriteObject() 공개 메소드

public WriteObject ( object o ) : void
o object
리턴 void