C# Reflection: How to Emit a class
问题 I have a class, ReferenceObject, that I want Emitted into the dll I create. How do I do this without writing every method with Emit? I basically want this class added to the dll I generate. Here is the class: public class ReferenceObject { private readonly int value; public ReferenceObject(int pValue) { value = pValue; } public override string ToString() { return value.ToString(); } public int Value() { return value; } public int ID() { return value; } #region == Operator public static bool