PropertyKey Class
Namespace: Stride.CoreAssembly: Stride.Core.dll
A class that represents a tag propety.
System.Object →
PropertyKey
Derived from PropertyKey: PropertyKey<T> ParameterKey
[DataContract]
[DataSerializer(typeof(PropertyKeySerializer<>), Mode = DataSerializerGenericMode.Type)]
public abstract class PropertyKey : IComparable
| Name | Description | |
|---|---|---|
| Constructors | ||
| PropertyKey(String, Type, Type, PropertyKeyMetadata[]) | Initializes a new instance of the PropertyKey class. |
|
| Properties | ||
| IsValueType | ||
| Metadatas | Gets the metadatas. |
|
| Name | Gets the name of this key. |
|
| OwnerType | Gets the type of the owner. |
|
| PropertyType | Gets the type of the property. |
|
| Methods | ||
| CompareTo(Object) | ||
| SetupMetadata(PropertyKeyMetadata) | ||
| SetupMetadatas() | ||
| ToString() | ||
Constructors
PropertyKey(String, Type, Type, PropertyKeyMetadata[])
Initializes a new instance of the PropertyKey class.
protected PropertyKey(string name, Type propertyType, Type ownerType, params PropertyKeyMetadata[] metadatas)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name. |
| System.Type | propertyType | Type of the property. |
| System.Type | ownerType | Type of the owner. |
| PropertyKeyMetadata[] | metadatas | The metadatas. |
Properties
IsValueType
public abstract bool IsValueType { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Metadatas
Gets the metadatas.
public PropertyKeyMetadata[] Metadatas { get; }
Property Value
| Type | Description |
|---|---|
| PropertyKeyMetadata[] |
Name
Gets the name of this key.
public string Name { get; protected set; }
Property Value
| Type | Description |
|---|---|
| System.String |
OwnerType
Gets the type of the owner.
public Type OwnerType { get; protected set; }
Property Value
| Type | Description |
|---|---|
| System.Type | The type of the owner. |
PropertyType
Gets the type of the property.
public Type PropertyType { get; protected set; }
Property Value
| Type | Description |
|---|---|
| System.Type | The type of the property. |
Methods
CompareTo(Object)
public int CompareTo(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Int32 |
SetupMetadata(PropertyKeyMetadata)
protected virtual void SetupMetadata(PropertyKeyMetadata metadata)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyKeyMetadata | metadata |
SetupMetadatas()
protected virtual void SetupMetadatas()
ToString()
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()