public static GetVisibility ( IEventReference value ) : MethodVisibility | ||
value | IEventReference | |
return | MethodVisibility |
public static bool IsVisible(IEventReference value, IVisibilityConfiguration visibility) { if (Helper.IsVisible(value.DeclaringType, visibility)) { switch (Helper.GetVisibility(value)) { case MethodVisibility.Public: return(visibility.Public); case MethodVisibility.Assembly: return(visibility.Assembly); case MethodVisibility.FamilyOrAssembly: return(visibility.FamilyOrAssembly); case MethodVisibility.Family: return(visibility.Family); case MethodVisibility.Private: case MethodVisibility.PrivateScope: return(visibility.Private); case MethodVisibility.FamilyAndAssembly: return(visibility.FamilyAndAssembly); } throw new NotSupportedException(); } return(false); }