C# FAQ: Can a property have different get and set access
More CSharp Language FAQs
Go to Visual CSharp FAQ (main page).
Consider these related Frequently Asked Questions—FAQs:
- Are C# constructors inherited?
- Are C# parameters passed by reference or by value ?
- Can a property have different
getandsetaccess? - Can
constandstaticbe used together? - Can I directly call a native function exported from a DLL?
- Do unused references to external assemblies lead to code bloat?
- Does C# have its own class library?
- Does C# have macros or a preprocessor?
- Does C# support custom exceptions?
- Does C# support jagged arrays?
- Does C# support variable method arguments (
vararg)? - How call overloaded operators from non-supporting languages?
- How can I force garbage collection?
- How can I output simple debugging messages?
- How can one constructor call another?
- How check the object type at runtime?
- How can type name clashes be resolved?
- How do destructors work in C#?
- How do I declare an
outvariable? - How do I get
DllImportto work? - How do I make a C# DLL?
- How do I use
traceandassert? - How get the type name at runtime?
- How keep a local variable in scope across a
try-catchblock? - How make sure C# classes will interoperate with other .NET languages?
- How perform a case insensitive string comparison?
- How process command line arguments?
- How specify a C# literal type?
- How subscribe to events exposed by remoted objects?
- How to obtain type information on the fly using
typeof? - How use an alias for a class or namespace?
- How would I create a
DelegateorMulticastDelegate? - Is there C# support for C-type macros?
- Is there C# support for templates?
- What are the C# character escape sequences (
\)? - What does at sign (
@) identifier mean? - What does "Object reference not set to an instance of an object" mean?
- What is a namespace?
- What is a type alias?
- What is C#?
- What is a C# response file?
- What is a verbatim string literal (
@)? - What is the C# Language Specification?
- What is the
#definepreprocessor directive? - What is the difference between
constandstaticreadonly? - What is the difference between
delegateandevent? - What is the difference between
GetType()andtypeof? - What is the difference between
newandoverride? - What is the difference between the
outandrefparameter modifiers? - What is the difference between
stringandSystem.String? - What is the difference between using a cast and the
asoperator? - What is the syntax for calling an overloaded constructor from within a constructor?
- What is the use of the C# compiler's
/target:command line option? - What is the Windows Class Viewer?
- What software is needed to develop C# applications?
- When should an exception be thrown?
- When should
Equalsand==be used? - Will
Console.WriteLine()stop printing upon encountering aNULLcharacter in a string? - Why add a
usingstatement and a reference? - Why are hashtable lookups so slow with
structkeys? - Why do I get a syntax error when I try to declare a variable named
checked? - Why does C# not support checked exceptions?
- Why does my Windows application open a console window each time it is run?
- Why doesn't the C#
switchstatement work like I expect it to? - Why doesn't a Windows Form project use visual styles in XP?
- Why get an error (CS1006) when declaring a method without a return type?
- Why must
structconstructors have at least one argument?