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

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc/mdoc.Test/SampleClasses/ReadonlyRefClass.cs')
-rw-r--r--mdoc/mdoc.Test/SampleClasses/ReadonlyRefClass.cs23
1 files changed, 21 insertions, 2 deletions
diff --git a/mdoc/mdoc.Test/SampleClasses/ReadonlyRefClass.cs b/mdoc/mdoc.Test/SampleClasses/ReadonlyRefClass.cs
index dbe738db..59f35672 100644
--- a/mdoc/mdoc.Test/SampleClasses/ReadonlyRefClass.cs
+++ b/mdoc/mdoc.Test/SampleClasses/ReadonlyRefClass.cs
@@ -3,8 +3,27 @@
public class ReadonlyRefClass
{
int i;
-
public ref int Ref() => ref i;
- public ref readonly int ReadonlyRef() => ref i;
+
+ public ref readonly int ReadonlyRef() => ref i;
+
+ public ref int RefProperty { get { return ref i; } }
+
+ public ref readonly int this[int index] => throw null;
+
+ public void RefInAndOutMethod(ref int a, in int b, out int c) => throw null;
+ }
+
+ public class GenericRefClass<T>
+ {
+ public ref T Ref() => throw null;
+
+ public ref readonly T ReadonlyRef() => throw null;
+
+ public ref T RefProperty => throw null;
+
+ public ref readonly T this[int index] => throw null;
+
+ public void RefInAndOutMethod(ref T a, in T b, out T c) => throw null;
}
}