Is Public - CSharp System.Reflection

CSharp examples for System.Reflection:Modifier

Description

Is Public

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Runtime.Serialization;
using System.Runtime.CompilerServices;
using System.Reflection.Emit;
using System.Reflection;
using System.Linq;
using System.IO;//  w  ww  .  j ava  2  s  .  co  m
using System.Globalization;
using System.Collections.Generic;
using System;

public class Main{
        public static bool IsPublic(this Type type)
        {
            var info = type.GetTypeInfo();

            return info.IsPublic;
        }
}

Related Tutorials