Mono.Cecil.WindowsRuntimeProjections.RemoveProjection C# (CSharp) 메소드

RemoveProjection() 공개 정적인 메소드

public static RemoveProjection ( CustomAttribute attribute ) : CustomAttributeValueProjection
attribute CustomAttribute
리턴 CustomAttributeValueProjection
        public static CustomAttributeValueProjection RemoveProjection(CustomAttribute attribute)
        {
            if (attribute.projection == null)
                return null;

            var projection = attribute.projection;
            attribute.projection = null;

            attribute.ConstructorArguments [0] = new CustomAttributeArgument (attribute.ConstructorArguments [0].Type, projection.Targets);
            attribute.Properties.Clear ();

            return projection;
        }

Same methods

WindowsRuntimeProjections::RemoveProjection ( FieldDefinition field ) : FieldDefinitionProjection
WindowsRuntimeProjections::RemoveProjection ( Mono.Cecil.MethodDefinition method ) : MethodDefinitionProjection
WindowsRuntimeProjections::RemoveProjection ( Mono.Cecil.TypeDefinition type ) : TypeDefinitionProjection
WindowsRuntimeProjections::RemoveProjection ( TypeReference type ) : TypeReferenceProjection