Boo.Lang.Compiler.Steps.EmitAssembly.GetCustomAttributeBuilder C# (CSharp) Метод

GetCustomAttributeBuilder() приватный Метод

private GetCustomAttributeBuilder ( Attribute node ) : CustomAttributeBuilder
node Boo.Lang.Compiler.Ast.Attribute
Результат System.Reflection.Emit.CustomAttributeBuilder
        CustomAttributeBuilder GetCustomAttributeBuilder(Attribute node)
        {
            var constructor = (IConstructor)GetEntity(node);
            var constructorInfo = GetConstructorInfo(constructor);
            object[] constructorArgs = ArgumentsForAttributeConstructor(constructor, node.Arguments);

            var namedArgs = node.NamedArguments;
            if (namedArgs.Count > 0)
            {
                PropertyInfo[] namedProperties;
                object[] propertyValues;
                FieldInfo[] namedFields;
                object[] fieldValues;
                GetNamedValues(namedArgs,
                               out namedProperties,
                               out propertyValues,
                               out namedFields,
                               out fieldValues);
                return new CustomAttributeBuilder(
                    constructorInfo, constructorArgs,
                    namedProperties, propertyValues,
                    namedFields, fieldValues);
            }
            return new CustomAttributeBuilder(constructorInfo, constructorArgs);
        }
EmitAssembly