C# Frequently Asked Questions
learn.microsoft.com/en-us/archive/blogs/csharpfaq
The C# team posts answers to common questions and describes new language features
- Posts
- 124 from 1 Mar 2004 to 21 May 2015
- Posting
- archived, read-only
- Kind
- company blog
- Feed
- https://learn.microsoft.com/en-us/archive/blogs/csharpfaq/feed.xml
2015 9
- New C# T-Shirt Designs on the .NET Blog - Tell Us What You Think
- Roslyn ships v1.0-rc2 with "Go-Live" license
- New C# T-Shirt Designs on the .NET Blog - Tell Us What You Think
- A Journey Through Open Source: The Trials & Triumphs in Roslyn's First Year of Open Source
- A Journey Through Open Source: The Trials & Triumphs in Roslyn's First Year of Open Source
- Edit & Continue and Make Object ID Improvements in CTP 6
- Edit & Continue and Make Object ID Improvements in CTP 6
- We're moving to GitHub!
- We're moving to GitHub!
2014 16
- Better together: C# 6 and the Visual Studio 2015 Debugger
- Better together: C# 6 and the Visual Studio 2015 Debugger
- New Features in C# 6
- Post-Release Goodies
- Short Videos Demonstrating What’s New in Visual Studio 2015 Preview for C#, VB, and F#
- Introducing the Visual Studio 2015 Preview for C# and VB
- New Features in C# 6
- Short Videos Demonstrating What’s New in Visual Studio 2015 Preview for C#, VB, and F#
- Introducing the Visual Studio 2015 Preview for C# and VB
- .NET Compiler Platform ("Roslyn") for the Rest of Us
- Visual Studio "14" CTP Now Available
- Edit and Continue survey results
- TechEd: "The Future of Visual Basic and C#" Video Now Available Online!
- Help make Edit and Continue better!
- Visualizing Roslyn Syntax Trees
- Roslyn performance (Matt Gertz)
2013 3
2012 6
2011 10
- Introduction to the Roslyn Scripting API
- Using the Roslyn Symbol API
- Roslyn Syntax Visualizers
- Using the Roslyn Syntax API
- Introducing the Microsoft “Roslyn” CTP
- C# 2010 Soup to Nuts Series
- New Async Programming Videos
- Async CTP (SP1 Refresh)
- How to programmatically launch Debugger in a remote machine
- Visual Studio is Hiring
2010 15
- Microsoft Help Viewer 1.1 - Updates Planned for Visual Studio 2010 SP1
- What’s Next in C#? Get Ready for Async!
- Converting a VBA Macro to C# 4.0
- Blocking Collection and the Producer-Consumer Problem
- C# 4.0 PowerPoint Presentations
- Parallel Programming: Task Cancellation
- Parallel Programming: Task Schedulers and Synchronization Context
- Parallel Programming in .NET Framework 4: Getting Started
- New IDE Features in Visual Studio 2010 for C# Developers
- Get Ready For C# 4.0!
- Crystal Reports for Visual Studio 2010
- How can I get objects and property values from expression trees?
- Covariance and Contravariance FAQ
- What is the difference between “dynamic” and “object” keywords?
- Getting Information About Objects, Types, and Members with Expression Trees
2009 6
- Debugging Expression Trees in Visual Studio 2010
- Dynamic in C# 4.0: Creating Wrappers with DynamicObject
- Dynamic in C# 4.0: Introducing the ExpandoObject
- Generating Dynamic Methods with Expression Trees in Visual Studio 2010
- How to use LINQ methods to compare objects of custom types
- Does the “LINQ to Objects” provider have built-in performance optimization?
2006 5
2005 1
2004 53
- What does the /target: command line option do in the C# compiler?
- What is the difference between const and static readonly?
- How do I create a constant that is an array?
- How do I get and set Environment variables?
- Is it possible to output the command-line used to build a project in Visual Studio?
- Preprocess Win32 Messages through Windows Forms
- Be Mindful of the References / 'using' / Manifest Relationship
- Leverage the C# Preprocessor
- Avoiding Type Name-Clashes using 'using'
- Build 'Consistent' .NET assemblies with FxCop
- Simplified Interface Implementation a la VS .NET 2003
- Simplified Event Handling a la VS .NET 2003
- Integrate ildasm.exe into VS .NET 2002
- Add Custom .NET Assemblies to the Add Reference Dialog
- Leverage C# Response Files at the Command Line
- Be Aware of wincv.exe
- Utilize the Server Explorer
- Obtain Type Information on the Fly using typeof
- Interacting with overloaded operators from overloaded operator challenged languages
- How to keep a local variable in scope across a try and catch block?
- Does C# support variable arguments (vararg's) on methods?
- What is the equivalent to regsvr32 in .NET?
- Are Generics in .NET like Templates in C++?
- Why does my switch statement works differently?
- Why does C#'s iterators feature spit out a class definition instead of a struct definition?
- How can I run another application or batch file from my Visual C# .NET code?
- How do I cast a string to an int, float, double, etc?
- How are return values from a delegate handled?
- Why don't nullable relational operators return bool? instead of bool?
- Why can't I use the same variable as an inner loop does?
- How do I write a method that accepts a variable number of parameters?
- Why doesn't C# support static method variables?
- Why must attribute properties be read/write in C#?
- Why do I get the error "Object reference not set to an instance of an object"?
- Why did I receive the error: "The type or namespace '<namespace name>' does not exist in the class or namespace '<parent namespace>' (are you missing an assembly reference?)"
- How can I subscribe to events exposed by a remoted object?
- Why does my Windows Form project not use visual styles in XP even when I call Application.EnableVisualStyles?
- Why aren't reference types polymorphic?
- Should I assign null to my local variables?
- Why do I need a null test before I invoke a delegate?
- Why doesn't C# warn about unused methods?
- How can I update my user interface from a thread that did not create it?
- Why can't I have static and instance methods with the same name?
- Where can I find sample C# code for simple threading?
- How do C# generics compare to C++ templates?
- Where is the C# specification?
- Why don't relational operators return bool as a type?
- Why doesn't C# support #define macros?
- Why don't namespace using directives import nested namespaces?
- Why doesn't C# have a power operator?
- Why doesn't C# support multiple inheritance?
- Does C# have default parameters?
- Ask a FAQ Question