C# Class Autodesk.Workspaces.IdReferenceResolver

The IdReferenceResolver class allows us to use the Guid of an object as the reference id during serialization.
Inheritance: IReferenceResolver
Afficher le fichier Open project: DynamoDS/Dynamo Class Usage Examples

Méthodes publiques

Méthode Description
AddReference ( object context, string reference, object value ) : void
AddToReferenceMap ( System.Guid oldGuid, object newObject ) : void

Add a reference to a newly created object, referencing an old Guid.

GetReference ( object context, object value ) : string
IsReferenced ( object context, object value ) : bool
ResolveReference ( object context, string reference ) : object
ResolveReferenceFromMap ( object context, string reference ) : object

Resolve a reference to a newly created object, given the original Guid for the object.

Private Methods

Méthode Description
GetGuidPropertyValue ( object value ) : System.Guid

Method Details

AddReference() public méthode

public AddReference ( object context, string reference, object value ) : void
context object
reference string
value object
Résultat void

AddToReferenceMap() public méthode

Add a reference to a newly created object, referencing an old Guid.
public AddToReferenceMap ( System.Guid oldGuid, object newObject ) : void
oldGuid System.Guid The old Guid of the object.
newObject object The new object which maps to the old Guid.
Résultat void

GetReference() public méthode

public GetReference ( object context, object value ) : string
context object
value object
Résultat string

IsReferenced() public méthode

public IsReferenced ( object context, object value ) : bool
context object
value object
Résultat bool

ResolveReference() public méthode

public ResolveReference ( object context, string reference ) : object
context object
reference string
Résultat object

ResolveReferenceFromMap() public méthode

Resolve a reference to a newly created object, given the original Guid for the object.
public ResolveReferenceFromMap ( object context, string reference ) : object
context object
reference string
Résultat object