Class PropertyObject
A simple class in which JSON can be deserialized.
Implements
Inherited Members
Namespace: Microsoft.XboxStudios.SQTech.Roster
Assembly: Microsoft.XboxStudios.SQTech.Roster.Common.dll
Syntax
public class PropertyObject : IPropertyObject
Fields
View SourceEmpty
Represents an empty or unset version of this object.
Declaration
public static readonly PropertyObject Empty
Field Value
Type | Description |
---|---|
PropertyObject |
Properties
View SourceRosterProperties
Gets JSON values not deserialized into other properties.
Declaration
[JsonExtensionData]
public IDictionary<string, JToken> RosterProperties { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, JToken> |
Methods
View SourceEquals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |
Overrides
View SourceGetList(string)
Gets a property as a list of strings.
Declaration
public virtual IList<string> GetList(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
string | propertyName | The name of the property to get. |
Returns
Type | Description |
---|---|
IList<string> | The property as a list of strings. |
GetString(string)
Gets a property as a string.
Declaration
public virtual string GetString(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
string | propertyName | The name of the property to get. |
Returns
Type | Description |
---|---|
string | The property as a string. |