GetVisibility() 공개 정적인 메소드

public static GetVisibility ( IEventReference value ) : MethodVisibility
value IEventReference
리턴 MethodVisibility
예제 #1
0
        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);
        }