Mono.Cecil.WindowsRuntimeProjections.RemoveProjection C# (CSharp) Method

RemoveProjection() public static method

public static RemoveProjection ( CustomAttribute attribute ) : CustomAttributeValueProjection
attribute CustomAttribute
return 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