Show / Hide Table of Contents

Class ManagedClassDataProvider

A provider of game class names and properties from the .NET class hierarchy.

Inheritance
object
ManagedClassDataProvider
Implements
IClassDataProvider
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.GameStateTracker.Generic
Assembly: GameStateTracker.Generic.Managed.dll
Syntax
public class ManagedClassDataProvider : IClassDataProvider
Remarks

The game class name can be customized with the GameClass attribute. By default, all public properties are registered as game properties. Properties can be disabled with the IgnoreGameProperty attribute, and custom properties can be added with the GameProperty attribute on the class or on individual properties.

Properties

View Source

BaseGameObjectProperties

Gets the property names for the base managed game object.

Declaration
public static IReadOnlyList<string> BaseGameObjectProperties { get; }
Property Value
Type Description
IReadOnlyList<string>
View Source

BaseGameObjectTypeInfo

Gets the type info for the base managed game object.

Declaration
public static TypeInfo BaseGameObjectTypeInfo { get; }
Property Value
Type Description
TypeInfo

Methods

View Source

GetBaseClassNames(TypeInfo)

Gets the base class names for game objects associated with the type.

Declaration
public IEnumerable<string> GetBaseClassNames(TypeInfo typeInfo)
Parameters
Type Name Description
TypeInfo typeInfo

The type.

Returns
Type Description
IEnumerable<string>

An enumerable of base class names.

View Source

GetProperties(TypeInfo)

Gets the properties to retrieve for the given type.

Declaration
public IEnumerable<string> GetProperties(TypeInfo typeInfo)
Parameters
Type Name Description
TypeInfo typeInfo

The game object type info.

Returns
Type Description
IEnumerable<string>

An enumeration of properties to retrieve.

View Source

GetPropertyNames(TypeInfo, BindingFlags)

Gets the names for properties of the given type.

Declaration
public static IEnumerable<string> GetPropertyNames(TypeInfo typeInfo, BindingFlags flags = BindingFlags.Instance | BindingFlags.Public)
Parameters
Type Name Description
TypeInfo typeInfo

The type info.

BindingFlags flags

The binding flags to match.

Returns
Type Description
IEnumerable<string>

An enumeration of property names.

Implements

IClassDataProvider

Extension Methods

IClassDataProviderExtensions.GetBaseClassName(IClassDataProvider, Type)
IClassDataProviderExtensions.GetBaseClassNames(IClassDataProvider, Type)
IClassDataProviderExtensions.GetProperties(IClassDataProvider, Type)
  • View Source
In this article
Back to top Generated by DocFX