Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DocTest-InternalInterface.cs « Test « mdoc - github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4a0573ee8ea4b9eafb2d4dac7bfa9c77e257f63a (plain)
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
28
29
30
31
32
33
34
35
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;
        }
    }
}