internal ClassAccessorWithReflection(IHasClassMemberVisibilityModifier parentVisibility, AccessorWithReflection accessor) { this.accessor = accessor; ClassMemberVisibilityModifier classVisibility = accessor.MethodInfo.ClassVisibility(); if (parentVisibility.Visibility == classVisibility) { visibility = ClassAccessorVisibilityModifier.None; } else { switch (classVisibility) { case ClassMemberVisibilityModifier.Internal: visibility = ClassAccessorVisibilityModifier.Internal; break; case ClassMemberVisibilityModifier.ProtectedInternal: visibility = ClassAccessorVisibilityModifier.ProtectedInternal; break; case ClassMemberVisibilityModifier.Protected: visibility = ClassAccessorVisibilityModifier.Protected; break; case ClassMemberVisibilityModifier.Private: visibility = ClassAccessorVisibilityModifier.Private; break; } } }
internal StructAccessorWithReflection(IHasStructMemberVisibilityModifier parentVisibility, AccessorWithReflection accessor) { this.accessor = accessor; StructMemberVisibilityModifier structVisibility = accessor.MethodInfo.StructVisibility(); if (parentVisibility.Visibility == structVisibility) { visibility = StructAccessorVisibilityModifier.None; } else { switch (structVisibility) { case StructMemberVisibilityModifier.Internal: visibility = StructAccessorVisibilityModifier.Internal; break; case StructMemberVisibilityModifier.Private: visibility = StructAccessorVisibilityModifier.Private; break; } } }
internal AbstractAccessorWithReflection(IHasAbstractMemberVisibilityModifier parentVisibility, AccessorWithReflection accessor) { this.accessor = accessor; }