What are properties in c#. Explain with an example?
Answer / Ram Mohan
"Properties in C# provide a simpler and more object-oriented way to access private fields of a class. Properties can have getters (accessors) and setters (mutators). An example is as follows:nn public class Person {n private string name;n public string Name {n get { return name; }n set { name = value; }n }n }
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you ensure the assembly created in c# is interoperable with vb.net?
What is desktop application testing?
An Array is a Ref Type? what about the array elements which are value type(int,Float...etc)?
How do I get deterministic finalization in c#?
What is a generic method?
How to authenticate web service? When you enter the web service url in browser it should ask username and password. After entering the un&pwd we have to show its methods and service description(wsdl).
Is overriding of a function possible in the same class?
what are wrapper classes?
If I want to override a method 1 of class A and in class b then how do you declare ?
How is lazy loading achieved?
How is a loop recorder monitored?
i need to insert data into sql server table emp through textboxes txtname and txtsalary using c# code. Please help
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)