-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Program.cs
27 lines (25 loc) · 968 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using PrivateLibrary.Bridges;
[assembly: System.Runtime.CompilerServices.IgnoresAccessChecksTo("PrivateLibrary")]
namespace PrivateLibrary.Console
{
internal class InheritClass : PrivateLibrary.InternalClass
{
public override string PublicMethod()
{
return "PublicMethod (InheritClass)";
}
}
class Program
{
static void Main(string[] args)
{
System.Console.WriteLine(InternalClassBridge.privateStaticStringField);
System.Console.WriteLine(InternalClassBridge.PublicStaticMethod());
System.Console.WriteLine(InternalClassBridge.PrivateStaticMethod());
System.Console.WriteLine(new InternalClassBridge().privateStringField);
System.Console.WriteLine(new InternalClassBridge().PublicMethod());
System.Console.WriteLine(new InternalClassBridge().PrivateMethod());
}
}
}