forum

Home / DeveloperSection / Forums / Is Possible to create property of static class?

Is Possible to create property of static class?

Manoj Bhatt138513-Jan-2016
Hello
I have a static class :

       publicstaticclassDemo
        {
            publicconststring Complete = "Complete";
            publicconststring Active = "Active";
            publicconststring Current = "Current";
        }

 

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

 

    publicclassDemoImplement
        {
            publicstring Code { get; set; }
            publicstring Title { get; set; }
            publicstring  Status { get; set; }
            publicstring Category { get; set; }
        }

Thanks in advance.     

Updated on 13-Jan-2016

Can you answer this question?


Answer

1 Answers

Liked By