2019-09-24 08:53:40 +00:00
|
|
|
using System;
|
|
|
|
|
2017-08-21 15:34:15 +00:00
|
|
|
namespace MyNamespace {
|
|
|
|
internal interface MyInternalInterface {
|
|
|
|
bool Foo {get;set;}
|
|
|
|
string FooSet {set;}
|
|
|
|
void FooMeth ();
|
|
|
|
void BarMeth ();
|
2019-09-24 08:53:40 +00:00
|
|
|
event EventHandler<string> InternalEvent;
|
|
|
|
}
|
|
|
|
public interface MyPublicInterface {
|
|
|
|
event EventHandler<string> PublicEvent;
|
2017-08-21 15:34:15 +00:00
|
|
|
}
|
|
|
|
|
2019-09-24 08:53:40 +00:00
|
|
|
public class MyClass : MyInternalInterface, MyPublicInterface {
|
2017-08-21 15:34:15 +00:00
|
|
|
[System.ComponentModel.DefaultValue ('\0')]
|
|
|
|
public string Bar {get;set;}
|
|
|
|
public void BarMeth () {} // part of the interface, but publicly implemented
|
|
|
|
|
|
|
|
string MyInternalInterface.FooSet {set {}}
|
|
|
|
bool MyInternalInterface.Foo {get;set;}
|
|
|
|
void MyInternalInterface.FooMeth () {}
|
2019-09-24 08:53:40 +00:00
|
|
|
|
|
|
|
event EventHandler<string> MyPublicInterface.PublicEvent {add{}remove{}}
|
|
|
|
event EventHandler<string> MyInternalInterface.InternalEvent {add{}remove{}}
|
|
|
|
public event EventHandler<int> InstanceEvent {add{}remove{}}
|
2017-08-21 15:34:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static class ArrayX10 {
|
|
|
|
public static bool IsAligned<T> (this T[] vect, int index) where T : struct
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|