Photon Server API
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

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.
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

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

Gets the members attribute.

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

Gets the member info.

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

Gets the members TypeCode.

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

Gets the type of the value.