Metalama 1.0 / / Metalama Documentation / Advanced API / Metalama.​Compiler / Managed­Resource / Managed­Resource

Constructor ManagedResource

ManagedResource(String, Byte[], Boolean)

Initializes a new instance of ManagedResource that represents a new public resource embedded in the module.

Declaration
public ManagedResource(string name, byte[] data, bool includeInRefAssembly = false)
Parameters
Type Name Description
String name

Name of the manage resource.

Byte[] data

The managed resource data.

Boolean includeInRefAssembly

A value indicating whether the resource should be included in reference assemblies.