Exemplo n.º 1
0
        static void CompleteSecurityAttributeProperties(SSP.SecurityAttribute security_attribute, SecurityAttribute attribute)
        {
            var type = security_attribute.GetType();

            foreach (var named_argument in attribute.Properties)
            {
                type.GetProperty(named_argument.Name).SetValue(security_attribute, named_argument.Argument.Value, null);
            }
        }
        private static void CompleteSecurityAttributeProperties(System.Security.Permissions.SecurityAttribute security_attribute, Mono.Cecil.SecurityAttribute attribute)
        {
            Type type = security_attribute.GetType();

            foreach (Mono.Cecil.CustomAttributeNamedArgument property in attribute.Properties)
            {
                type.GetProperty(property.Name).SetValue(security_attribute, property.Argument.Value, null);
            }
        }
Exemplo n.º 3
0
        static void CompleteSecurityAttributeFields(SSP.SecurityAttribute security_attribute, SecurityAttribute attribute)
        {
            var type = security_attribute.GetType();

            foreach (var named_argument in attribute.Fields)
            {
                type.GetField(named_argument.Name).SetValue(security_attribute, named_argument.Argument.Value);
            }
        }
        private static void CompleteSecurityAttributeFields(System.Security.Permissions.SecurityAttribute security_attribute, Mono.Cecil.SecurityAttribute attribute)
        {
            Type type = security_attribute.GetType();

            foreach (Mono.Cecil.CustomAttributeNamedArgument field in attribute.Fields)
            {
                type.GetField(field.Name).SetValue(security_attribute, field.Argument.Value);
            }
        }