C# 클래스 Pomona.Common.Internals.ClientTypeResolverExtensions

파일 보기 프로젝트 열기: Pomona/Pomona

공개 메소드들

메소드 설명
GetMostInheritedResourceInterface ( this client, Type sourceType ) : Type

This function gets the most subtyped server-known interface implemented by given type. For example lets take a type hierarchy where we got entities IBase and IEntity, where IEntity inherits from IBase. Then we got some other type like ICustomCrazyType that inherits from IEntity. When given this type this function will return IEntity type.

GetResourceInfoForType ( this client, Type type ) : ResourceInfoAttribute

비공개 메소드들

메소드 설명
GetMostInheritedResourceInterfaceInfo ( this client, Type sourceType ) : ResourceInfoAttribute

메소드 상세

GetMostInheritedResourceInterface() 공개 정적인 메소드

This function gets the most subtyped server-known interface implemented by given type. For example lets take a type hierarchy where we got entities IBase and IEntity, where IEntity inherits from IBase. Then we got some other type like ICustomCrazyType that inherits from IEntity. When given this type this function will return IEntity type.
public static GetMostInheritedResourceInterface ( this client, Type sourceType ) : Type
client this Client responsible for resolving type. TODO: Might put this in its own interface.
sourceType System.Type Type to find resource interface on.
리턴 System.Type

GetResourceInfoForType() 공개 정적인 메소드

public static GetResourceInfoForType ( this client, Type type ) : ResourceInfoAttribute
client this
type System.Type
리턴 ResourceInfoAttribute