System.Reflection.Emit.ILGenerator.UsingNamespace C# (CSharp) Method

UsingNamespace() public method

public UsingNamespace ( string usingNamespace ) : void
usingNamespace string
return void
        public virtual void UsingNamespace(string usingNamespace) { }
    }

Usage Example

コード例 #1
0
ファイル: class.cs プロジェクト: ArildF/masters
 private void EmitUsingNamespaces(ILGenerator il){
   if (this.body.Engine.GenerateDebugInfo){
     ScriptObject ns = this.enclosingScope;
     while (ns != null){
       if (ns is PackageScope)
         il.UsingNamespace(((PackageScope)ns).name);
       else if (ns is WrappedNamespace && !((WrappedNamespace)ns).name.Equals(""))
         il.UsingNamespace(((WrappedNamespace)ns).name);
       ns = ns.GetParent();
     }
   }
 }
All Usage Examples Of System.Reflection.Emit.ILGenerator::UsingNamespace