System.Xml.Xsl.IlGen.XmlILModule.BakeMethods C# (CSharp) Method

BakeMethods() public method

Once all methods have been defined, CreateModule must be called in order to "bake" the methods within this module.
public BakeMethods ( ) : void
return void
        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;
            }
        }