Beamable SDK
Public Member Functions | Properties | List of all members
Beamable.Common.Reflection.INamingAttribute Interface Reference

Implement this interface over any Attribute to be able to use the existing ReflectionCache utilities that validate things with respect to attributes that are used to name members. More...

Inheritance diagram for Beamable.Common.Reflection.INamingAttribute:
Inheritance graph
[legend]
Collaboration diagram for Beamable.Common.Reflection.INamingAttribute:
Collaboration graph
[legend]

Public Member Functions

AttributeValidationResult AreValidNameForType (MemberInfo member, string[] potentialNames)
 A function that validates the list of names given to the implementing attribute instance. More...
 
- Public Member Functions inherited from Beamable.Common.Reflection.IReflectionAttribute
AttributeValidationResult IsAllowedOnMember (MemberInfo member)
 Takes in the MemberInfo associated with this attribute and returns a AttributeValidationResult. More...
 

Properties

string[] Names [get]
 A list of names that must be unique between all uses of the implementing attribute.
 

Detailed Description

Implement this interface over any Attribute to be able to use the existing ReflectionCache utilities that validate things with respect to attributes that are used to name members.

Member Function Documentation

◆ AreValidNameForType()

AttributeValidationResult Beamable.Common.Reflection.INamingAttribute.AreValidNameForType ( MemberInfo  member,
string[]  potentialNames 
)

A function that validates the list of names given to the implementing attribute instance.

Returns
An AttributeValidationResult<T> with a clear message and ReflectionCache.ValidationResultType.

Implemented in Beamable.Server.CallableAttribute, and Beamable.Server.StorageObjectAttribute.


The documentation for this interface was generated from the following file: