Babel.Compiler.TypeManager.AddBabelName C# (CSharp) Méthode

AddBabelName() public méthode

public AddBabelName ( MethodBuilder methodBuilder, string babelName ) : void
methodBuilder System.Reflection.Emit.MethodBuilder
babelName string
Résultat void
        public void AddBabelName(MethodBuilder methodBuilder,
                                 string babelName)
        {
            Type[] paramTypes = new Type[] { typeof(string) };
            ConstructorInfo constructor =
                typeof(BabelNameAttribute).GetConstructor(paramTypes);
            CustomAttributeBuilder attrBuilder =
                new CustomAttributeBuilder(constructor,
                                           new object[] { babelName });
            methodBuilder.SetCustomAttribute(attrBuilder);
            Attribute attr = new BabelNameAttribute(babelName);
            AddCustomAttribute(methodBuilder, attr);
        }