상속: System.Attribute
예제 #1
0
파일: typemanager.cs 프로젝트: shugo/babel
 public void AddIterCreatorName(MethodBuilder methodBuilder,
                                string name)
 {
     Type[] paramTypes = new Type[] { typeof(string) };
     ConstructorInfo constructor =
         typeof(IterCreatorNameAttribute).GetConstructor(paramTypes);
     CustomAttributeBuilder attrBuilder =
         new CustomAttributeBuilder(constructor,
                                    new object[] { name });
     methodBuilder.SetCustomAttribute(attrBuilder);
     Attribute attr = new IterCreatorNameAttribute(name);
     AddCustomAttribute(methodBuilder, attr);
 }