Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new instance.
 /// </summary>
 /// <param name="metadata">The metadata specification used to create a <see cref="AllowedMembersExtension"/>.</param>
 /// <param name="defaultNames">The default names selector for element and attribute names.</param>
 /// <param name="defaultMemberOrder">The order selector to use when a <see cref="MemberInfo"/> is encountered and
 /// selected.</param>
 public DefaultExtensions(IMetadataSpecification metadata, INames defaultNames,
                          IParameterizedSource <MemberInfo, int> defaultMemberOrder)
 {
     _metadata           = metadata;
     _defaultNames       = defaultNames;
     _defaultMemberOrder = defaultMemberOrder;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new instance.
 /// </summary>
 /// <param name="specification"></param>
 /// <param name="blacklist"></param>
 /// <param name="whitelist"></param>
 public AllowedMembersExtension(IMetadataSpecification specification, ICollection <MemberInfo> blacklist,
                                ICollection <MemberInfo> whitelist)
 {
     _specification = specification;
     Blacklist      = blacklist;
     Whitelist      = whitelist;
 }
 public TypeMemberSource(IMetadataSpecification specification, IProperties properties, IFields fields, IMembers members)
 {
     _specification = specification;
     _properties    = properties;
     _fields        = fields;
     _members       = members;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a new instance.
 /// </summary>
 /// <param name="specification"></param>
 public AllowedMembersExtension(IMetadataSpecification specification)
     : this(specification, new HashSet <MemberInfo>(DefaultBlacklist), new HashSet <MemberInfo>())
 {
 }
 public IsValidMemberType(IMetadataSpecification specification) => _specification = specification;
 public AllowedMembersExtension(IAllowedMembersExtension previous, IMetadataSpecification specification)
 {
     _previous      = previous;
     _specification = specification;
 }
Ejemplo n.º 7
0
 public ConstructorMembers(IMetadataSpecification specification, IMembers source)
 {
     _specification = specification;
     _source        = source;
 }