Esempio n. 1
0
 /// <summary>
 /// Creates "standard" access rules from subtyping rules and an export
 /// predicate.
 /// </summary>
 /// <param name="subtyping">
 /// Subtyping rules to use for resolving protected access modifiers.
 /// </param>
 /// <param name="isExportedTo">
 /// A predicate that tells if a member is exported to a type, circumventing
 /// standard access rules.
 /// </param>
 public StandardAccessRules(
     SubtypingRules subtyping,
     Func <IMember, IType, bool> isExportedTo)
 {
     this.Subtyping    = subtyping;
     this.IsExportedTo = isExportedTo;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates "standard" access rules from subtyping rules.
 /// </summary>
 /// <param name="subtyping">
 /// Subtyping rules to use for resolving protected access modifiers.
 /// </param>
 public StandardAccessRules(SubtypingRules subtyping)
     : this(subtyping, (member, type) => false)
 {
 }