Click or drag to resize

ExtensionsToByteArray Method

Gets the *real* bytes that constitute an Assembly using a rather ugly hack.

Namespace:  com.tiberiumfusion.ttplugins
Assembly:  TTPlugins (in TTPlugins.dll) Version: 1.2.0.1 (1.2.0.1)
Syntax
public static byte[] ToByteArray(
	this Assembly assembly
)

Parameters

assembly
Type: System.ReflectionAssembly
The Assembly to turn into a byte[].

Return Value

Type: Byte
A byte[] containing the assembly's bytes, or null if the operation failed.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Assembly. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also