linux-packaging-mono/external/api-doc-tools/mdoc/Test/DocTest-InternalInterface.cs
Xamarin Public Jenkins (auto-signing) 95fdb59ea6 Imported Upstream version 6.6.0.89
Former-commit-id: b39a328747c2f3414dc52e009fb6f0aa80ca2492
2019-09-24 08:53:40 +00:00

36 lines
1.0 KiB
C#

using System;
namespace MyNamespace {
internal interface MyInternalInterface {
bool Foo {get;set;}
string FooSet {set;}
void FooMeth ();
void BarMeth ();
event EventHandler<string> InternalEvent;
}
public interface MyPublicInterface {
event EventHandler<string> PublicEvent;
}
public class MyClass : MyInternalInterface, MyPublicInterface {
[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 () {}
event EventHandler<string> MyPublicInterface.PublicEvent {add{}remove{}}
event EventHandler<string> MyInternalInterface.InternalEvent {add{}remove{}}
public event EventHandler<int> InstanceEvent {add{}remove{}}
}
public static class ArrayX10 {
public static bool IsAligned<T> (this T[] vect, int index) where T : struct
{
return false;
}
}
}