C# Programming - Properties - Discussion

Discussion Forum : Properties - General Questions (Q.No. 8)
8.
A property can be declared inside a namespace or a procedure.
True
False
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
4 comments Page 1 of 1.

Riya said:   9 years ago
Why don't we declare a property inside a procedure? Somebody help me.

Sunny siddhu said:   9 years ago
Property is declare inside a class, struct, interface.

Swapnali Shinde said:   8 years ago
Procedure itself is a function and we cannot declare properties inside a function.

Nooor Hasaan said:   7 years ago
Why don't we declare a property inside a procedure?

Give me an example.

Post your comments here:

Your comments will be displayed after verification.