Users Pricing

forum

Home Forums Is Possible to create property of static class? – MindStick

Is Possible to create property of static class?

Manoj Bhatt 1747 13 Jan 2016
Hello
I have a static class :

       public static class Demo
        {
            public const string Complete = "Complete";
            public const string Active = "Active";
            public const string Current = "Current";
        }

 

and I want to have a property that will present an occurrence of this static class in another class DemoImplement.

 

    public class DemoImplement
        {
            public string Code { get; set; }
            public string Title { get; set; }
            public string  Status { get; set; }
            public string Category { get; set; }
        }

Thanks in advance.     

1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md