C# Класс SIL.FieldWorks.FDO.Infrastructure.Impl.CmObjectId

A CmObjectId is basically a GUID. However, GUID is a struct, and hence, every Guid variable takes 16 bytes. CmObjectIds can be shared. Also, being our own class, we can implement some common methods with CmObject. CmObjectId also implements (secretly and very incompletely) ICmObjectOrSurrogate. This allows them to occur in the main dictionary of the IdentityMap.
Наследование: ICmObjectId, ICmObjectOrIdInternal, ICmObjectOrSurrogate
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Create ICmObjectId
FromGuid ICmObjectId
ICmObjectOrIdInternal int

Открытые методы

Метод Описание
Equals ( CmObjectId id ) : bool

object ids are equal if their guids are.

Equals ( object obj ) : bool

object ids are equal if their guids are.

GetHashCode ( ) : int

consistent with equality.

GetObject ( ICmObjectRepository repo ) : ICmObject
ToXMLString ( bool owning, System writer ) : void

Add to the writer the standard XML representation of a reference to this object, marked to indicate whether it is an owned or referenced object.

Защищенные методы

Метод Описание
CmObjectId ( System.Guid guid ) : System

The goal is a private constructor which ensures the only way to get one is something that ensures we get the canonical one. Has to be protected to allow CmObjectIdWithHvo. Do NOT subclass this as some sort of trick to be able to create one.

GetHvoUsing ( IdentityMap map ) : int

Приватные методы

Метод Описание
Create ( System.Guid guid ) : ICmObjectId
FromGuid ( System.Guid guid, IdentityMap map ) : ICmObjectId
ICmObjectOrIdInternal ( IdentityMap map ) : int

Описание методов

CmObjectId() защищенный Метод

The goal is a private constructor which ensures the only way to get one is something that ensures we get the canonical one. Has to be protected to allow CmObjectIdWithHvo. Do NOT subclass this as some sort of trick to be able to create one.
protected CmObjectId ( System.Guid guid ) : System
guid System.Guid
Результат System

Equals() публичный Метод

object ids are equal if their guids are.
public Equals ( CmObjectId id ) : bool
id CmObjectId
Результат bool

Equals() публичный Метод

object ids are equal if their guids are.
public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

consistent with equality.
public GetHashCode ( ) : int
Результат int

GetHvoUsing() защищенный Метод

protected GetHvoUsing ( IdentityMap map ) : int
map IdentityMap
Результат int

GetObject() публичный Метод

public GetObject ( ICmObjectRepository repo ) : ICmObject
repo ICmObjectRepository
Результат ICmObject

ToXMLString() публичный Метод

Add to the writer the standard XML representation of a reference to this object, marked to indicate whether it is an owned or referenced object.
public ToXMLString ( bool owning, System writer ) : void
owning bool
writer System
Результат void