Ejemplo n.º 1
0
        public void SetUp()
        {
            StatementScope.Cleanup();

            var key = new TypeKey(baseType: typeof(object));

            m_Class = m_Module.DefineClass(key.BaseType, key, Guid.NewGuid().ToString());

            var classBody = new ImplementationClassWriter <object>(m_Class);

            classBody.Method <string>(x => x.ToString).Implement(m => { });

            m_Method = m_Class.GetMemberByName <MethodMember>("ToString");
        }
Ejemplo n.º 2
0
 public void TearDown()
 {
     StatementScope.Cleanup();
     m_Class  = null;
     m_Method = null;
 }