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
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

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