Microsoft.JScript.AssemblyCustomAttributeList.TranslateToIL C# (CSharp) Method

TranslateToIL() private method

private TranslateToIL ( ILGenerator il, Type rtype ) : void
il System.Reflection.Emit.ILGenerator
rtype System.Type
return void
      internal override void TranslateToIL(ILGenerator il, Type rtype){
        foreach (CustomAttributeBuilder ca in this.list.GetCustomAttributeBuilders(false))
          this.compilerGlobals.assemblyBuilder.SetCustomAttribute(ca);
        if (rtype != Typeob.Void) {
          il.Emit(OpCodes.Ldnull);
          if (rtype.IsValueType)
            Convert.Emit(this, il, Typeob.Object, rtype);
        }
      }