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

StructWithReadOnlyMethod.cs « SampleClasses « mdoc.Test « mdoc - github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 69b950ef55659685e00a95f4cea1699214529c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
namespace mdoc.Test.SampleClasses
{
    public struct StructWithReadOnlyMethod : Struct_Interface_A
    {
        public double X { get; set; }
        public double Y { get; set; }

        public readonly double Sum()
        {
            return X + Y;
        }

        readonly int Struct_Interface_A.GetNum() => 1;

        public string Property { get; }
    }
}