Show / Hide Table of Contents

Class AssemblyResources

Resources that reside as embedded resources in a Assembly

Inheritance
Object
AssemblyResources
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: FakeHttp.Resources
Assembly: FakeHttp.dll
Syntax
public sealed class AssemblyResources : IReadOnlyResources

Constructors

| Improve this Doc View Source

AssemblyResources(Assembly)

ctor

Declaration
public AssemblyResources(Assembly assembly)
Parameters
Type Name Description
Assembly assembly

Assembly with response files stored as embedded resources

Exceptions
Type Condition
ArgumentNullException

Methods

| Improve this Doc View Source

Exists(String, String)

Checks whether the specified file exists

Declaration
public bool Exists(string folder, string fileName)
Parameters
Type Name Description
String folder

The folder name

String fileName

The file name

Returns
Type Description
Boolean

Flag indicating whether file exists

Implements
IReadOnlyResources.Exists(String, String)
| Improve this Doc View Source

LoadAsStream(String, String)

Loads a given file as a stream

Declaration
public Stream LoadAsStream(string folder, string fileName)
Parameters
Type Name Description
String folder

The folder name

String fileName

The file name

Returns
Type Description
Stream

File's contents as a stream

Implements
IReadOnlyResources.LoadAsStream(String, String)
Exceptions
Type Condition
FileLoadException
| Improve this Doc View Source

LoadAsString(String, String)

Loads a given file as a string

Declaration
public string LoadAsString(string folder, string fileName)
Parameters
Type Name Description
String folder

The folder name

String fileName

The file name

Returns
Type Description
String

The file's contents as a string

Implements
IReadOnlyResources.LoadAsString(String, String)
Exceptions
Type Condition
FileLoadException
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX