---
title: "Is Possible to create property of static class?"  
description: "Is Possible to create property of static class?"  
author: "Manoj Bhatt"  
published: 2016-01-13  
updated: 2016-01-13  
canonical: https://www.mindstick.com/forum/33868/is-possible-to-create-property-of-static-class  
category: "c#"  
tags: ["c#", ".net"]  
reading_time: 1 minute  

---

# Is Possible to create property of static class?

HelloI have a [static](https://www.mindstick.com/articles/12098/the-static-keyword-the-static-methods) [class](https://www.mindstick.com/blog/165/generic-class-in-c-sharp) :\
\

```
       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](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) that will [present](https://answers.mindstick.com/qa/96635/explain-about-the-various-features-present-in-ms-access) 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. \

## Replies

### Reply by Anupam Mishra

Hi Manoj,it's not possible; you do not instantiate a static class.You can do this:\
\

```
 public class DemoImplement{    public string Code { get; set; }    public string Title { get; set; }    public string  Status { get; set; }    public string Category { get; set; }    public string MyActive = Demo.Active;}void Main(){   DemoImplement  DI= new DemoImplement();    Console.WriteLine (DI.MyActive);}
```

> ##### output:\Active


---

Original Source: https://www.mindstick.com/forum/33868/is-possible-to-create-property-of-static-class

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
