Photon Server API Documentation v5.0RC1

Public Member Functions | Properties | List of all members
Photon.SocketServer.Rpc.Reflection.ObjectMemberInfo< TAttribute > Class Template Reference

This class contains reflection data about a property or a field. More...

Public Member Functions

 ObjectMemberInfo (FieldInfo fieldInfo, Type attributeType)
 Initializes a new instance of the ObjectMemberInfo<TAttribute> class. More...
 
 ObjectMemberInfo (PropertyInfo propertyInfo, Type attributeType)
 Initializes a new instance of the ObjectMemberInfo<TAttribute> class. More...
 

Properties

TAttribute MemberAttribute [get]
 Gets the members attribute. More...
 
MemberInfo MemberInfo [get]
 Gets the member info. More...
 
TypeCode TypeCode [get]
 Gets the members TypeCode. More...
 
Type ValueType [get]
 Gets the type of the value. More...
 

Detailed Description

This class contains reflection data about a property or a field.

Template Parameters
TAttributeThe type of the mapped attribute.
Type Constraints
TAttribute :DataMemberAttribute 

Constructor & Destructor Documentation

◆ ObjectMemberInfo() [1/2]

Photon.SocketServer.Rpc.Reflection.ObjectMemberInfo< TAttribute >.ObjectMemberInfo ( FieldInfo  fieldInfo,
Type  attributeType 
)
inline

Initializes a new instance of the ObjectMemberInfo<TAttribute> class.

Parameters
fieldInfoThe field info.
attributeTypeThe attribute type.

◆ ObjectMemberInfo() [2/2]

Photon.SocketServer.Rpc.Reflection.ObjectMemberInfo< TAttribute >.ObjectMemberInfo ( PropertyInfo  propertyInfo,
Type  attributeType 
)
inline

Initializes a new instance of the ObjectMemberInfo<TAttribute> class.

Parameters
propertyInfoThe property info.
attributeTypeThe attribute type.

Property Documentation

◆ MemberAttribute

TAttribute Photon.SocketServer.Rpc.Reflection.ObjectMemberInfo< TAttribute >.MemberAttribute
get

Gets the members attribute.

◆ MemberInfo

MemberInfo Photon.SocketServer.Rpc.Reflection.ObjectMemberInfo< TAttribute >.MemberInfo
get

Gets the member info.

◆ TypeCode

TypeCode Photon.SocketServer.Rpc.Reflection.ObjectMemberInfo< TAttribute >.TypeCode
get

Gets the members TypeCode.

◆ ValueType

Type Photon.SocketServer.Rpc.Reflection.ObjectMemberInfo< TAttribute >.ValueType
get

Gets the type of the value.