Shaolinq.AsyncRewriter.CompilationLookup.MethodIsPublicOrAccessibleFromCompilation C# (CSharp) Метод

MethodIsPublicOrAccessibleFromCompilation() приватный Метод

private MethodIsPublicOrAccessibleFromCompilation ( IMethodSymbol method ) : bool
method IMethodSymbol
Результат bool
		private bool MethodIsPublicOrAccessibleFromCompilation(IMethodSymbol method)
		{
			if (method.DeclaredAccessibility == Accessibility.Public)
			{
				return true;
			}

			if ((method.DeclaredAccessibility == Accessibility.Internal
				|| method.DeclaredAccessibility == Accessibility.ProtectedOrInternal)
				&& Equals(method.ContainingAssembly, this.compilation.Assembly))
			{
				return true;
			}

			return false;
		}