public void BakeMethods()
{
Type typBaked;
Hashtable methodsBaked;
if (!_useLRE)
{
typBaked = _typeBldr.CreateTypeInfo().AsType();
// Replace all MethodInfos in this.methods
methodsBaked = new Hashtable(_methods.Count);
foreach (string methName in _methods.Keys)
{
methodsBaked[methName] = typBaked.GetMethod(methName, BindingFlags.NonPublic | BindingFlags.Static);
}
_methods = methodsBaked;
// Release TypeBuilder and symbol writer resources
_typeBldr = null;
_urlToSymWriter = null;
}
}