Class ItemIdentifier
Inheritance
System.Object
ItemIdentifier
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Quark.CMSAdapters.Core.Data
Assembly: Quark.CMSAdapters.Core.dll
Syntax
public class ItemIdentifier
Constructors
ItemIdentifier(Object, String)
Initializes a new instance of the ItemIdentifier class.
Declaration
public ItemIdentifier(object id, string name = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | id | The identifier. |
System.String | name | The name. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Id can not be null. |
Properties
Id
Gets or sets the identifier.
Declaration
public object Id { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The identifier. |
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |
Methods
Equals(Object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
System.Object.GetHashCode()
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
System.Object.ToString()