C# 클래스 PerpetualEngine.EmbeddedResourceLoader

Utility class that can be used to find and load embedded resources into memory. Taken from the Xamarin example project https://github.com/xamarin/mobile-samples/tree/master/EmbeddedResources
파일 보기 프로젝트 열기: perpetual-mobile/PerpetualEngine

공개 메소드들

메소드 설명
GetEmbeddedResourceBytes ( Assembly assembly, string resourceFileName ) : byte[]

Attempts to find and return the given resource from within the specified assembly.

GetEmbeddedResourceBytes ( string resourceFileName ) : byte[]

Attempts to find and return the given resource from within the calling assembly.

GetEmbeddedResourceStream ( Assembly assembly, string resourceFileName ) : Stream

Attempts to find and return the given resource from within the specified assembly.

GetEmbeddedResourceStream ( string resourceFileName ) : Stream

Attempts to find and return the given resource from within the calling assembly.

GetEmbeddedResourceString ( Assembly assembly, string resourceFileName ) : string

Attempts to find and return the given resource from within the specified assembly.

GetEmbeddedResourceString ( string resourceFileName ) : string

Attempts to find and return the given resource from within the calling assembly.

메소드 상세

GetEmbeddedResourceBytes() 공개 정적인 메소드

Attempts to find and return the given resource from within the specified assembly.
public static GetEmbeddedResourceBytes ( Assembly assembly, string resourceFileName ) : byte[]
assembly System.Reflection.Assembly Assembly.
resourceFileName string Resource file name.
리턴 byte[]

GetEmbeddedResourceBytes() 공개 정적인 메소드

Attempts to find and return the given resource from within the calling assembly.
public static GetEmbeddedResourceBytes ( string resourceFileName ) : byte[]
resourceFileName string Resource file name.
리턴 byte[]

GetEmbeddedResourceStream() 공개 정적인 메소드

Attempts to find and return the given resource from within the specified assembly.
public static GetEmbeddedResourceStream ( Assembly assembly, string resourceFileName ) : Stream
assembly System.Reflection.Assembly Assembly.
resourceFileName string Resource file name.
리턴 Stream

GetEmbeddedResourceStream() 공개 정적인 메소드

Attempts to find and return the given resource from within the calling assembly.
public static GetEmbeddedResourceStream ( string resourceFileName ) : Stream
resourceFileName string Resource file name.
리턴 Stream

GetEmbeddedResourceString() 공개 정적인 메소드

Attempts to find and return the given resource from within the specified assembly.
public static GetEmbeddedResourceString ( Assembly assembly, string resourceFileName ) : string
assembly System.Reflection.Assembly Assembly.
resourceFileName string Resource file name.
리턴 string

GetEmbeddedResourceString() 공개 정적인 메소드

Attempts to find and return the given resource from within the calling assembly.
public static GetEmbeddedResourceString ( string resourceFileName ) : string
resourceFileName string Resource file name.
리턴 string