Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Nested classes | Public fields | Public Member Functions | List of all members
Loyc.SyncLib.Impl.ObjectSyncher< SyncManager, SyncObj, T > Struct Template Reference

A helper for reading/writing objects and structs via ISyncObject{SyncManager, T}. More...


Source file:
Inheritance diagram for Loyc.SyncLib.Impl.ObjectSyncher< SyncManager, SyncObj, T >:
Loyc.SyncLib.ISyncField< SyncManager, T >

Remarks

A helper for reading/writing objects and structs via ISyncObject{SyncManager, T}.

Type Constraints
SyncManager :ISyncManager 
SyncObj :ISyncObject 
SyncObj :SyncManager 
SyncObj :T 

Nested classes

class  DefaultTag
 

Public fields

SyncObj _syncObj
 
ObjectMode _mode
 
string _typeTag
 

Public Member Functions

 ObjectSyncher (SyncObj sync, ObjectMode mode)
 
 ObjectSyncher (SyncObj sync, ObjectMode mode, string?typeTag)
 
void SyncTypeTag (ref SyncManager sync, FieldId propName)
 Reads or writes the type tag, which must happen immediately after BeginSubObject, before the object's first field. The tag is owned by this wrapper (not by the sync function) so that a reader can, in a dynamically- typed context, read the tag first and use it to choose a sync function. More...
 
Sync (ref SyncManager sync, FieldId propName, T?item)
 
void Write (ref SyncManager sync, FieldId propName, T?item)
 

Member Function Documentation

void Loyc.SyncLib.Impl.ObjectSyncher< SyncManager, SyncObj, T >.SyncTypeTag ( ref SyncManager  sync,
FieldId  propName 
)
inline

Reads or writes the type tag, which must happen immediately after BeginSubObject, before the object's first field. The tag is owned by this wrapper (not by the sync function) so that a reader can, in a dynamically- typed context, read the tag first and use it to choose a sync function.