Gang Of Coders
Home
About Us
Contact Us
All .Net Solutions on Gang of Coders
Total of 3660 .Net Solutions
What is the difference between String and string in C#?
C#
.Net
String
Types
Alias
How to enumerate an enum
C#
.Net
Loops
Enums
Enumeration
How to make an HTTP POST web request
C#
.Net
Post
Httpwebrequest
Httprequest
How and when to use ‘async’ and ‘await’
C#
.Net
Asynchronous
Async Await
How to deserialize a JObject to .NET object
.Net
Json
Exception
Serialization
json.net
Universal Windows project - HttpClient exception
C#
.Net
Windows 10
Win Universal-App
Uwp
Reference a .NET Core Library in a .NET 4.6 project
C#
.Net
How to write to a file in .NET Core?
C#
.Net
Bluetooth
Coreclr
How to limit the Maximum number of parallel tasks in c#
C#
.Net
Asynchronous
Which Enum constant will I get if the Enum values are same
C#
.Net
Enums
Is there any danger in using ConfigureAwait(false) in WebApi or MVC controllers?
C#
.Net
asp.net Mvc
Asynchronous
asp.net Web-Api
TimeZoneInfo in .NET Core when hosting on unix (nginx)
C#
.Net
Nginx
Timezone
.Net Core
ASP.NET Web Api - Startup.cs doesn't exist
C#
asp.net
.Net
asp.net Mvc
asp.net Mvc-4
.Net Framework 4.6.1 not defaulting to TLS 1.2
.Net
Ssl
tls1.2
.Net 4.6.1
What exactly is "managed" code?
C#
.Net
vb.net
Managed Code
Using Entity Framework entities as business objects?
.Net
Entity Framework
Architecture
How to populate a WPF grid based on a 2-dimensional array
.Net
Wpf
Data Binding
Templates
Grid
Cursor.Current vs. this.Cursor
C#
.Net
Winforms
Mouse Cursor
Find out the size of a .NET object
.Net
Memory Management
Garbage Collection
Profiling
Testing SMTP with .net
.Net
Testing
Smtp
Automatic Cookie Handling C#/.NET HttpWebRequest+HttpWebResponse
C#
.Net
Cookies
Rename some files in a folder
C#
.Net
Graph database for .NET
C#
Java
.Net
Mono
Graph Databases
System.Configuration.ConfigurationManager not available?
.Net
Configurationmanager
Using "GO" within a transaction
.Net
Sql
Sql Server
Tsql
Transactions
Use CouchDB with .NET
C#
.Net
asp.net
Couchdb
Finding out if a type implements a generic interface
C#
.Net
Reflection
Does .Disposing a StreamWriter close the underlying stream?
C#
.Net
How to store/retrieve RSA public/private key
C#
.Net
Cryptography
Rsa
how to create an animated gif in .net
C#
.Net
Dynamic
Animated Gif
How can one get an absolute or normalized file path in .NET?
.Net
Filepath
The best approach to create new window in WPF using MVVM
C#
.Net
Wpf
Mvvm
What does char 160 mean in my source code?
C#
.Net
Business Case for ReSharper
C#
.Net
Resharper
.NET DefaultValue attribute
C#
.Net
Properties
Attributes
Entity Framework Vote of No Confidence - relevant in .NET 4?
.Net
Entity Framework
.Net 4.0
ado.net
GZipStream or DeflateStream class?
C#
.Net
Compression
Why use the global keyword in C#?
C#
.Net
Namespaces
Global
DataGridView.Clear()
C#
.Net
How to open a new form from another form
C#
.Net
Winforms
.Net 2.0
WebClient Unicode - Which UTF8?
C#
.Net
Unicode
Utf 8
Webclient
Send email using System.Net.Mail through gmail
C#
.Net
Email
C# - Insert a variable number of spaces into a string? (Formatting an output file)
C#
.Net
Visual Studio-2010
String
String Formatting
How do you UrlEncode without using System.Web?
C#
.Net
Urlencode
.Net Client-Profile
How do I create a HashCode in .net (c#) for a string that is safe to store in a database?
C#
.Net
Database
Hashcode
Gethashcode
Is there a tutorial on how to implement Google Authenticator in .NET apps?
.Net
Google Authenticator
Two Factor-Authentication
Replace Console.WriteLine in NUnit
C#
.Net
Debugging
Nunit
static imports in c#
Java
C#
.Net
Static Import
Difference between Select and Where in Entity Framework
C#
.Net
Linq
Entity Framework
Linq to-Sql
Resharper debugging a third party decompiled dll
.Net
Debugging
Resharper
Internal .NET Framework Data Provider error 1025
C#
.Net
Entity Framework
Entity Framework-4
Expression Trees
Is there a way to convert a dynamic or anonymous object to a strongly typed, declared object?
.Net
C# 4.0
Anonymous Class
Dynamicobject
Treat all warnings as errors
C#
.Net
Tfs
Msbuild
Warnings
SQLite Database Locked exception
C#
.Net
Sqlite
ado.net
system.data.sqlite
Multiple SQL statements in one roundtrip using Dapper.NET
C#
Sql
.Net
Sql Server
Dapper
How to ensure there is trailing directory separator in paths?
C#
.Net
Path
What are the differences between WebAPI and WebAPI 2
C#
.Net
asp.net Web-Api
Running Code Analysis (FxCop > 10) on build agent without installing Visual Studio
.Net
Msbuild
Continuous Integration
Fxcop
Build Server
Is there a "Space(n)" method in C#/.Net?
C#
.Net
Deploy a .NET Windows Service with Amazon Elastic Beanstalk with no Web Application
C#
.Net
Amazon Web-Services
Amazon Elastic-Beanstalk
Is Mono ready for prime time?
.Net
Mono
Upload files with HTTPWebrequest (multipart/form-data)
.Net
Upload
Httpwebrequest
What is the best Battleship AI?
C#
.Net
Artificial Intelligence
PropertyExpression is missing
C#
.Net
Lambda
Expression
Expression Trees
Project.json definition dnx451 vs .dotnet ( 4.51)
.Net
Dnx
.Net Core
Inaccuracy of decimal in .NET
C#
.Net
Decimal
Floating Accuracy
Can't use System.Configuration.Configuration manager in a .NET Standard2.0 library on .NET FX4.6
C#
.Net
.Net Standard
.Net Standard-2.0
Why does my .NET Standard NuGet package trigger so many dependencies?
.Net
Nuget
.Net Standard
Run a background task from a controller action in ASP.NET Core
C#
.Net
asp.net Core
asp.net Core-Mvc
asp.net Core-2.0
Build error while transitioning between branches: Your project is not referencing the ".NETFramework,Version=v4.7.2" framework
C#
.Net
Git
Build
.Net Core
What does a single quote inside a C# date time format mean?
C#
.Net
Datetime
.Net Core
Datetime Format
Best .NET memory and performance profiler?
C#
.Net
Profiling
Profiler
Most useful .NET utility classes developers tend to reinvent rather than reuse
.Net
glob pattern matching in .NET
C#
.Net
Glob
OS Compatibility for various .NET Framework versions
.Net
Windows
Version Compatibility
ASP.NET removing an item from Session?
C#
asp.net
.Net
Session
Session Variables
Best Continuous Integration Setup for a solo developer (.NET)
C#
.Net
asp.net
Continuous Integration
When Would You Prefer DateTime Over DateTimeOffset
.Net
Datetime
Datetimeoffset
Why Create Custom Exceptions?
C#
.Net
Exception
Why are multi-dimensional arrays in .NET slower than normal arrays?
.Net
Performance
Arrays
Error message "Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC"
.Net
Clickonce
Gac
Stdole
Should you implement IDisposable.Dispose() so that it never throws?
C#
.Net
Idisposable
Memory Leak in C#
C#
.Net
Memory Leaks
Garbage Collection
Managed
What is a module in .NET?
C#
.Net
Module
When not to use lambda expressions
C#
.Net
Lambda
Anonymous Methods
Using the Web Application version number from an assembly (ASP.NET/C#)
C#
.Net
asp.net
Reflection
Assemblies
How do you keep the WPF window sized to content with an Expander after resize
.Net
Wpf
Sizetocontent
How to return an XML string as an action result in MVC
.Net
Xml
asp.net Mvc
Actionresult
How to run regasm.exe from command line other than Visual Studio command prompt?
.Net
C++
Visual C++
Command Line
Operating System
Is the Linq Count() faster or slower than List.Count or Array.Length?
C#
.Net
Linq
Problem with LINQ to Entities and String.StartsWith
.Net
Linq
Entity Framework
Linq to-Entities
guid to base64, for URL
C#
.Net
vb.net
Guid
Base64
Downloading video from YouTube
C#
.Net
Youtube
Youtube Api
C++ .NET convert System::String to std::string
.Net
C++
String
Marshalling
Reading a CSV file in .NET?
C#
.Net
Csv
Browser
Is double Multiplication Broken in .NET?
C#
.Net
Math
Moq - How to verify that a property value is set via the setter
C#
.Net
Mocking
Tdd
Moq
Get Database Table Name from Entity Framework MetaData
.Net
Entity Framework
Database Metadata
How to modify key in a dictionary in C#
C#
.Net
Dictionary
Key
How do I get %LocalAppData% in c#?
C#
.Net
Why does IQueryable.All() return true on an empty collection?
.Net
Linq
Logic
How can I get a character in a string by index?
C#
.Net
String
Indexof
Specify the search path for DllImport in .NET
.Net
Dllimport
Selecting a range of items inside an array in C#
C#
.Net
Arrays
Why Tuple's items are ReadOnly?
.Net
.Net 4.0
Readonly
Tuples
DataContractSerializer Error using Entity Framework 4.0 with WCF 4.0
.Net
Entity Framework
WPF: Cannot reuse window after it has been closed
C#
.Net
Wpf
Singleton
Window
Dispatcher BeginInvoke Syntax
C#
.Net
Multithreading
Wcf Data-Services
How do I find the .NET version?
.Net
Automapper: Update property values without creating a new object
C#
.Net
Automapper
Getting file names without extensions
C#
.Net
What is the purpose of "return await" in C#?
C#
.Net
.Net 4.5
Async Await
Interfaces — What's the point?
C#
.Net
Interface
Is there an alternative to string.Replace that is case-insensitive?
C#
.Net
String
.Net 2.0
Replace
How to set and change the culture in WPF
.Net
Wpf
Localization
How to start a process from windows service into currently logged in user's session
.Net
Windows Services
Difference between IQueryable, ICollection, IList & IDictionary interface
C#
.Net
Performance
List
Collections
Html.EditorFor additionalViewData
.Net
asp.net Mvc-3
C# Recursion Depth - How Deep can you go
C#
.Net
Recursion
Stack
Any way to make DataContractJsonSerializer serialize Dictionaries properly?
.Net
Wcf
Serialization
How to allow copying message on MessageBox
C#
.Net
Wpf
How do you update multiple field using Update.Set in MongoDB using official c# driver?
C#
.Net
Mongodb
Mongodb .Net-Driver
Concept of Private class in C#
C#
.Net
Access Modifiers
MSBuild: copy whole folder
.Net
Visual Studio
Msbuild
ImageSourceConverter error for Source=null
.Net
Wpf
Image
Exception Handling
Ivalueconverter
Is there a dictionary implementation in JavaScript?
Javascript
.Net
Arrays
Dictionary
Console app arguments, how arguments are passed to Main method
C#
.Net
Command Line-Arguments
How to set a time zone (or a Kind) of a DateTime value?
C#
.Net
Datetime
Timezone
Defining Local Variable const vs Class const
C#
.Net
Constants
Jit
Generating numbers list in C#
C#
.Net
Visual Studio
.Net 3.5
Compare string similarity
C#
.Net
String
Algorithm
String Comparison
How to get the date of the next Sunday?
C#
.Net
Datetime
Optional parameters "must be a compile-time constant"
C#
.Net
How to Close a Window in WPF on a escape key
C#
.Net
Wpf
Xaml
Unable to find manifest signing certificate in the certificate store
.Net
Vsto
Clickonce
merging two objects in C#
C#
.Net
Browsing the .NET Framework source code from Visual Studio
.Net
Visual Studio
How do I measure how long a function is running?
C#
.Net
Performance
Timer
Stopwatch
Why should I make the underlying type of an Enum Int32 instead of byte?
C#
.Net
Enums
Queue<T> vs List<T>
.Net
Performance
List
Queue
Difference
Which NoSQL database should I use for logging?
.Net
Mongodb
Logging
What is the Nuget repositories.config file for?
.Net
Visual Studio
Nuget
Repeating a function every few seconds
C#
.Net
Loops
How to add a reference to an assembly in LINQPad to access custom types?
.Net
Linqpad
How can you unit test an Action Filter in ASP.NET Web Api?
.Net
Unit Testing
asp.net Web-Api
Action Filter
3 Digit currency code to currency symbol
C#
.Net
Sql Server-2008
Currency
How do I select a complete dataGridView Row when the user clicks a cell of that row?
C#
.Net
Winforms
Datagridview
Get Cell Value from a DataTable in C#
C#
.Net
Datatable
Break lines and wrapping in auto formatting of Visual Studio with ReSharper
C#
.Net
Visual Studio
Architecture
Resharper
Playing a MP3 file in a WinForm application
C#
.Net
Winforms
Mp3
WCF ExceptionShielding Error ID does not match up with handlingInstanceId passed to Handler
.Net
Wcf
Exception
Enterprise Library
Fault
How to throttle requests in a Web Api?
C#
.Net
asp.net Web-Api
Throttling
Empty string as a special case?
C#
.Net
How to pass in a mocked HttpClient in a .NET test?
C#
.Net
Mocking
Dotnet Httpclient
Microsoft Fakes
How to get the Index of second comma in a string
C#
.Net
String
Indexof
How can I create a temp file with a specific extension with .NET?
C#
.Net
File
Temporary Files
Is it possible to change the location of packages for NuGet?
.Net
Visual Studio
Nuget
Nuget Package
Merge two (or more) lists into one, in C# .NET
C#
.Net
List
When or if to Dispose HttpResponseMessage when calling ReadAsStreamAsync?
C#
.Net
Stream
Idisposable
Dotnet Httpclient
How to resolve NuGet dependency hell
C#
.Net
Nuget
Dependency Management
ASP.NET MVC 5 culture in route and url
C#
.Net
asp.net Mvc
asp.net Mvc-5
asp.net Mvc-Routing
Automapper: passing parameter to Map method
C#
.Net
Automapper 3
How to turn off or handle camelCasing in JSON response ASP.NET Core?
C#
.Net
Angularjs
Json
asp.net Core
How to convert DateTime of type DateTimeKind.Unspecified to DateTime.Kind.Utc in C# (.NET)
C#
.Net
Datetime
Sql Server-Ce
Where are generic methods stored?
C#
.Net
Generics
How can I use Dependency Injection in a .Net Core ActionFilterAttribute?
C#
asp.net
.Net
asp.net Core
Memorycache
.NET testing framework advice
C#
.Net
Visual Studio
Unit Testing
Nunit
How do I convert a date to a HTTP-formatted date in .Net / C#
C#
.Net
Http
How best to use File Version and Assembly Version?
.Net
Attributes
Versions
IPC Mechanisms in C# - Usage and Best Practices
C#
.Net
Ipc
Does elmah handle caught exceptions as well
asp.net
.Net
Exception Handling
Elmah
How do you get the root namespace of an assembly?
.Net
Reflection
Finding out what exceptions a method might throw in C#
C#
.Net
Exception
"The creator of this fault did not specify a Reason" Exception
C#
.Net
Wcf
Faults
Change Assembly Version in a compiled .NET assembly
.Net
mscorlib.dll & System.dll
.Net
Assemblies
What are Extension Methods?
.Net
Extension Methods
How much memory does a C#/.NET object use?
C#
.Net
Object
Memory
Profiling
CLR and CLI - What is the difference?
.Net
Clr
Command Line-Interface
Why it is not possible to define generic indexers in .NET?
C#
.Net
Generics
Pair-wise iteration in C# or sliding window enumerator
C#
.Net
Iterator
Ienumerable
WPF - How to combine DataTrigger and Trigger?
.Net
Wpf
Triggers
Selection
Listboxitem
What's the difference between Control.Select() and Control.Focus()?
.Net
Winforms
User Interface
Behavior
Stack capacity in C#
C#
.Net
Clr
Stack
What is a quick way to force CRLF in C# / .NET?
C#
.Net
String
Newline
How do I open an already opened file with a .net StreamReader?
.Net
File
Streamreader
Readonly
namespace naming conventions
C#
.Net
Namespaces
Design Guidelines
Detecting remote desktop connection
C#
.Net
vb.net
Why is this name with an underscore not CLS Compliant?
C#
.Net
Cls Compliant
How to debug the .NET Windows Service OnStart method?
C#
.Net
Debugging
C#: Perform Operations on GPU, not CPU (Calculate Pi)
C#
.Net
Api
Gpu
How do I print out a tree structure?
C#
.Net
Tree
Pretty Print
Unique file identifier in windows
C#
.Net
Windows
Filesystems
Convert string[] to int[] in one line of code using LINQ
C#
.Net
Linq
Extension Methods
How to pass parameters to ThreadStart method in Thread?
C#
.Net
Multithreading
The opposite of Intersect()
C#
.Net
Collections
Intersect
What is the C# Using block and why should I use it?
C#
.Net
Syntax
Using
Using Statement
Inserting a tab character into text using C#
C#
.Net
How do I assign a value to a MailMessage ReplyTo property?
.Net
Email
C# Remove all empty subdirectories
C#
.Net
Subdirectory
How to save a List<string> on Settings.Default?
C#
.Net
Winforms
What is the meaning of serialization in programming languages?
C#
.Net
Serialization
The 'clr-namespace' URI refers to a namespace that is not included in the assembly
C#
.Net
Wpf
Xaml
Converter
how do I check if an entity is the first element of a foreach loop
C#
.Net
Foreach
Matching numbers with regular expressions — only digits and commas
.Net
Regex
Numbers
Matching
Random element of List<T> from LINQ SQL
C#
.Net
Linq
Random
SortedSet<T> vs HashSet<T>
C#
.Net
Collections
Generics
C# string comparison ignoring spaces, carriage return or line breaks
C#
.Net
String
Difference between ListView and DataGrid in WPF?
.Net
Wpf
Listview
Gridview
Datagrid
.NET implementation of scrypt
C#
.Net
Cryptography
Hash
Scrypt
How do I make a WPF window movable by dragging the extended window frame?
C#
.Net
Wpf
Winapi
Windows 7
Kill process tree programmatically in C#
C#
.Net
Kill Process
What is different between and purpose of MEF and Unity?
.Net
Dependency Injection
Unity Container
Mef
Displaying a page in MVC 3 without layout
C#
.Net
asp.net Mvc-3
Object cannot be cast from DBNull to other types
C#
.Net
asp.net
Parameters
ASP.NET MVC Architecture : ViewModel by composition, inheritance or duplication?
C#
.Net
asp.net Mvc
Architecture
What does "reference was created to embedded interop assembly" mean?
.Net
.Net 4.0
How to make a simple dynamic proxy in C#
C#
.Net
Reflection
Proxy
Aop
What is the difference between Version and 'Runtime Version' in .Net?
.Net
Runtime
Version
Rhino Mocks
.Net Assembly
Why does Guid.ToByteArray() order the bytes the way it does?
C#
.Net
Guid
Plain C# Editor in Visual Studio 2012 (No intellisense, no indentation, no code highlighting)
C#
.Net
Visual Studio
Visual Studio-2012
Any reason to prefer CefSharp over CefGlue (or vice-versa)?
.Net
Webkit
C++ Cli
Pinvoke
Chromium
ZipArchive creates invalid ZIP file
C#
.Net
Windows 8
Ziparchive
Environment.GetEnvironmentVariable won't find variable value
C#
.Net
Web Services
Iis
Environment Variables
SGEN: An attempt was made to load an assembly with an incorrect format
C#
.Net
Tfs
Msbuild
C# abstract class naming convention
C#
.Net
Naming Conventions
.NET Core vs Mono
C#
.Net
Mono
.Net Core
Should I always disconnect event handlers in the Dispose method?
C#
.Net
Events
Event Handling
Dispose
What is the Difference Between `new object()` and `new {}` in C#?
C#
.Net
Object
C# access modifier for exposing class only within namespace
C#
.Net
Namespaces
Disable maximize button of WPF window, keeping resizing feature intact
C#
.Net
Wpf
Can I LINQ a JSON?
C#
.Net
Json
Linq
Linq to-Json
Delay then execute Task
C#
.Net
Asynchronous
Task Parallel-Library
Simple way to perform error logging?
C#
.Net
Logging
Error Handling
Error Logging
Visual Studio 2013. You do not have sufficient privilege to access IIS web sites on your machine
asp.net
.Net
Iis
Visual Studio-2013
How are denormalized floats handled in C#?
C#
.Net
Performance
Intel
Sse
Use Task.Run() in synchronous method to avoid deadlock waiting on async method?
C#
.Net
Asynchronous
Task Parallel-Library
Async Await
Unable to resolve assembly reference issue without frameworkAssemblies
.Net
Nuget
Dnx
Nuspec
Executing tasks in parallel
C#
.Net
Asynchronous
Async Await
Task Parallel-Library
A certificate chain could not be built to a trusted root authority
.Net
Certificate
Windows 7-Embedded
.NET Core include folder in publish
C#
.Net
Visual Studio
asp.net Core
Net Core API: Purpose of ProducesResponseType
C#
.Net
asp.net Core
.Net Core
Is there any way to automate windows forms testing?
C#
.Net
vb.net
Winforms
Automated Tests
C# .NET + PostgreSQL
C#
.Net
Postgresql
In what order are locations searched to load referenced DLLs?
.Net
Dll
Validate image from file in C#
C#
.Net
Image
File Io
Deserializing XML to Objects in C#
C#
.Net
Serialization
Enumeration extension methods
.Net
Enums
Extension Methods
Enumeration
Get path to execution directory of Windows Forms application
.Net
Winforms
Path
Directory
What is a satellite assembly?
.Net
Satellite Assembly
How to update database table schemas with NHibernate schema generation?
.Net
Nhibernate
Orm
Fluent Nhibernate
Schema
C# Telnet Library
C#
.Net
Telnet
Using IDisposable to unsubscribe events
.Net
Events
Idisposable
Unsubscribe
How Random is System.Guid.NewGuid()?
.Net
Random
Guid
Get AM/PM for a date time in lowercase using only a datetime format
.Net
Datetime
String Formatting
Use a .jar java library API in C#?
Java
C#
.Net
Interop
How can I remove item from querystring in asp.net using c#?
C#
.Net
asp.net
Query String
Transactions in the Repository Pattern
.Net
Design Patterns
Domain Driven-Design
Repository Pattern
Architectural Patterns
How can I detect the encoding/codepage of a text file
C#
.Net
Text
Encoding
Globalization
Does using "new" on a struct allocate it on the heap or stack?
C#
.Net
Memory Management
Default SecurityProtocol in .NET 4.5
.Net
Security
Ssl
Using app.config with a class library
.Net
Configuration
WPF listbox empty datatemplate
.Net
Wpf
Listbox
Datatemplate
Generic Type in constructor
C#
.Net
Generics
Inversion of-Control
ReSharper and var
.Net
Resharper
Implicit
How do I determine the owner of a process in C#?
C#
.Net
Process
WPF: How to make canvas auto-resize?
.Net
Wpf
Resize
Wpf Controls
Scrollviewer
How do I determine which monitor my .NET Windows Forms program is running on?
C#
.Net
Windows
Winforms
Screen
Is there a complete IEquatable implementation reference?
C#
.Net
Equals
Gethashcode
Iequatable
File extensions and MIME Types in .NET
.Net
asp.net
Content Type
Mime
File Extension
Determine if collection is of type IEnumerable<T>
C#
.Net
Linq
Collections
Types
Is there a WebSocket client implemented for .NET?
.Net
Html
Websocket
Client
Refresh Page C# ASP.NET
C#
.Net
asp.net
Visual Studio
Refresh
Abstract constructor in C#
C#
.Net
Constructor
Abstract Class
How to make Authorize attribute return custom 403 error page instead of redirecting to the Logon page
C#
.Net
asp.net Mvc
Security
Authorization
OpenWrap vs NuGet
.Net
Nuget
Openwrap
Where to store external DLL files?
C#
.Net
Wpf
Visual Studio
Dll
Remove items of list from another lists with criteria
C#
.Net
Linq
List
How can I set the opacity or transparency of a Panel in WinForms?
.Net
Winforms
Transparency
Panel
Opacity
PipeTransmissionMode.Message: How do .NET named pipes distinguish between messages?
.Net
Named Pipes
How to use the .NET Timer class to trigger an event at a specific time?
C#
.Net
Timer
How do I convert an array of floats to a byte[] and back?
C#
.Net
Floating Point
Bytearray
Endianness
List<T> readonly with a private set
C#
.Net
Generics
C# 3.0
Auto-width of ComboBox's content
C#
.Net
Winforms
Combobox
What AttributeTarget should I use for enum members?
C#
.Net
Enums
Custom Attributes
How to get Custom Attribute values for enums?
C#
.Net
Reflection
Custom Attributes
Overlay data from JSON string to existing object instance
C#
.Net
Json
Serialization
How can I make the image size smaller on a button?
C#
.Net
Winforms
Does Parallel.ForEach Block?
C#
.Net
Multithreading
Logging
Parallel Processing
Nullable object must have a value?
C#
.Net
Linq to-Sql
Exception Handling
Nullable
.NET 4.0 has a new GAC, why?
.Net
.Net 4.0
Gac
What is the default value for enum variable?
C#
.Net
Enums
How to fix "'System.AggregateException' occurred in mscorlib.dll"
C#
.Net
Exception
Aggregateexception
Convert Date from Persian to Gregorian
C#
.Net
Datetime
Calendar
C# Thread won't sleep?
C#
.Net
Multithreading
Allowing connection to .NET COM server with mismatching integrity level
C#
.Net
Com
Uac
How to set HTTP status code from ASP.NET MVC 3?
C#
.Net
asp.net Mvc-3
Use FileSystemWatcher on a single file in C#
C#
.Net
Filesystemwatcher
How to reliably detect the actual .NET 4.5 version installed?
.Net
.Net 4.5
When does a reconnect in signalR occur?
.Net
Signalr
Signalr Hub
Reconnect
Could not find type 'xxx.xxx.xxx'. Please make sure that the assembly
.Net
vb.net
Visual Studio-2012
Visual Studio-Designer
define a List like List<int,string>?
C#
.Net
EF Data Context - Async/Await & Multithreading
C#
.Net
Multithreading
Entity Framework
Async Await
Unable to debug managed code using visual studio 2013 ("Cannot evaluate expression" error - am using debug build) (Note that VS 2012 works)
C#
.Net
Visual Studio
Powershell
Web API serialize properties starting from lowercase letter
C#
.Net
asp.net Mvc
asp.net Web-Api
json.net
Finding the reason for DBUpdateException
C#
.Net
Entity Framework
How can I unzip a file to a .NET memory stream?
C#
.Net
Ftp
Waiting for async/await inside a task
C#
.Net
Task Parallel-Library
Task
Async Await
Moq with Task await
C#
.Net
Asynchronous
Async Await
Moq
ASP.NET Controller: An asynchronous module or handler completed while an asynchronous operation was still pending
C#
.Net
asp.net Mvc-4
Async Await
Webclient
WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for jquery
C#
asp.net
.Net
Validation
Why is there no Char.Empty like String.Empty?
C#
.Net
String
Char
Base Class-Library
Cannot resolve DbContext in ASP.NET Core 2.0
C#
asp.net
.Net
Entity Framework
asp.net Core
C# .Net How to Encode URL space with %20 instead of +
C#
.Net
asp.net Mvc
Web
Error when running unit tests in visual studio: Test-case objects missing
C#
.Net
Visual Studio
Resharper
Mstest
Redundant comparison & "if" before assignment
C#
.Net
If Statement
How do I parse and convert a DateTime to the RFC 3339 date-time format?
.Net
Datetime
Rfc3339
Atom Feed
What are the advantages and disadvantages of using the GAC?
.Net
Gac
VB.NET Empty String Array
.Net
Arrays
vb.net
Custom cursor in WPF?
.Net
Wpf
Interprocess communication for Windows in C# (.NET 2.0)
C#
.Net
Ipc
Calling 32bit Code from 64bit Process
.Net
Migration
X86
64 Bit
Fortran
Which program in Visual Studio lets me look into DLLs to see its API?
.Net
Visual Studio-2008
Integrating POP3 client functionality into a C# application?
.Net
Pop3
Review
How to get xpath from an XmlNode instance
C#
.Net
Xml
.Net 2.0
ShellExecute equivalent in .NET
C#
.Net
Winapi
Windows Shell
Shellexecute
Parameterized Queries with LIKE and IN conditions
.Net
Sql
Parameters
Sql Injection
Parameterized
Managing complex Web.Config files between deployment environments
.Net
asp.net
Visual Studio
Wcf
"The resource cannot be found." error when there is a "dot" at the end of the url
.Net
asp.net Mvc
Routing
Routes
WCF: DataMember attribute on property vs. member
.Net
Wcf
Serialization
System error 5 Access is denied when starting a .NET service
.Net
Windows
Visual Studio
Error Handling
Windows Services
How to read and modify NTFS Alternate Data Streams using .NET
C#
.Net
Ntfs
Alternate Data-Stream
Reusing SqlCommand?
C#
.Net
Sql Server
What is the best Twitter API wrapper/library for .NET?
.Net
Api
Twitter
WCF Contract Name 'IMyService' could not be found?
.Net
Wcf
Exception Handling
Is there an async version of DirectoryInfo.GetFiles / Directory.GetDirectories in dotNet?
.Net
F#
Asynchronous
Directoryinfo
Async Workflow
How do you configure WCF known types programmatically?
.Net
Wcf
Wcf Configuration
Known Types
Is it possible to copy code from Visual Studio and paste formatted code to OneNote?
C#
.Net
Visual Studio
Onenote
Richtext
More Elegant Exception Handling Than Multiple Catch Blocks?
C#
.Net
Exception
Error Handling
How good/bad is sharepoint programming?
C#
.Net
Sharepoint
How does the "Using" statement translate from C# to VB?
C#
.Net
vb.net
Visual Studio-2005
.Net 2.0
How to handle a blocked clipboard and other oddities
C#
.Net
Clipboard
Java vs C#: Are there any studies that compare their execution speed?
C#
Java
.Net
Benchmarking
What is the point of the key parameter in ModelState.AddModelError in ASP.NET MVC?
C#
.Net
asp.net Mvc
What names do you find yourself prepending/appending to classes regularly?
.Net
Naming Conventions
Update primary key value using entity framework
.Net
Sql Server
vb.net
Entity Framework
ASP.NET MVC vs Spring MVC
Java
.Net
asp.net Mvc
Comparison
Spring Mvc
Finding an item in a List<> using C#
C#
.Net
How to work with Enums in Entity Framework?
.Net
Entity Framework
Enums
Converting Bitmap PixelFormats in C#
C#
.Net
Image
How to configure Fluent NHibernate to output queries to Trace or Debug instead of Console?
C#
.Net
asp.net
Nhibernate
Fluent Nhibernate
DataGridView - how to set column width?
.Net
Winforms
Datagridview
Controls
.NET DateTime to SqlDateTime Conversion
C#
.Net
Datetime
Sqldatetime
What are the Generations in Garbage Collection?
.Net
Garbage Collection
Reflection.Emit vs CodeDOM
C#
.Net
Code Generation
reflection.emit
Codedom
C#: Dynamic parse from System.Type
C#
.Net
Type Conversion
How does MatchEvaluator in Regex.Replace work?
C#
.Net
Regex
Replace
Matchevaluator
Does .NET Regex support global matching?
C#
.Net
Regex
Forcing Basic Authentication in WebRequest
.Net
Web Services
Authentication
Webrequest
Can .NET Task instances go out of scope during run?
C#
.Net
Garbage Collection
Task
Task Parallel-Library
Can't load a manifest resource with GetManifestResourceStream()
C#
.Net
Configurationsection
.NET vs ASP.NET vs CLR vs ASP
.Net
asp.net
Asp Classic
Clr
Automapper for Java
Java
.Net
Mapping
Automapper
How the StringBuilder class is implemented? Does it internally create new string objects each time we append?
C#
.Net
String
Stringbuilder
How to solve "unable to switch the encoding" error when inserting XML into SQL Server
.Net
Sql Server
Xml
Utf 8
Utf 16
Octal equivalent in C#
C#
.Net
Numbers
What does one question mark following a variable declaration mean?
C#
.Net
How can I read a file even when getting an "in use by another process" exception?
C#
.Net
vb.net
File Io
Visual Studio Immediate Window - Lambda Expressions Aren't Allowed - Is there a Work-around or Alternative?
C#
.Net
Visual Studio-2010
Lambda
Immediate Window
Error Deserializing Xml to Object - xmlns='' was not expected
C#
.Net
Xml
Serialization
Deserialization
Correct way to delay the start of a Task
C#
.Net
Task Parallel-Library
Cached property vs Lazy<T>
C#
.Net
.Net 4.0
Lazy Loading
LINQ: Not Any vs All Don't
C#
.Net
Performance
Linq
Resharper
Get current folder path
C#
.Net
Winforms
Path
Best practices for catching and re-throwing .NET exceptions
C#
.Net
Exception Handling
Rethrow
Getting all types in a namespace via reflection
C#
.Net
Reflection
Namespaces
Release generating .pdb files, why?
.Net
Visual Studio
Debugging
Pdb Files
Debug Symbols
Will #if RELEASE work like #if DEBUG does in C#?
C#
.Net
Debugging
How to compare enum and int values?
C#
.Net
Enums
Difference between List and IList
C#
.Net
How do I use JSON.NET to deserialize into nested/recursive Dictionary and List?
.Net
Json
json.net
Deserialization
What open-source QR Code Generator would you recommend?
C#
.Net
Open Source
Qr Code
How to declare a class instance as a constant in C#?
C#
.Net
Constants
Summary is not showing in the assembly if it is added as a reference
C#
.Net
Visual Studio
Xml Documentation
Stream as a return value in WCF - who disposes it?
.Net
Wcf
Stream
Idisposable
How does StringBuilder work internally in C#?
C#
.Net
String
Stringbuilder
How to detect Windows shutdown or logoff
C#
.Net
Windows
Winforms
System Shutdown
The component does not have a resource identified by the uri
C#
.Net
Wpf
Generics
Mvvm
Is there a way to convert a System.IO.Stream to a Windows.Storage.Streams.IRandomAccessStream?
C#
.Net
Windows
Windows 8
.NET: How to convert Exception to string?
C#
.Net
Exception
Tostring
String interning in .Net Framework - What are the benefits and when to use interning
C#
.Net
String
Performance
String Interning
StringStream in C#
C#
.Net
Stringstream
Casting a result to float in method returning float changes result
C#
.Net
.Net 4.0
Casting
Floating Point
Entity Framework and Multi threading
.Net
Multithreading
Frameworks
Entity
How to make WinForms UserControl fill the size of its container
C#
.Net
Winforms
Mdi
Multipage
Multiple AppSettings files, is it possible?
C#
.Net
Configuration
Appsettings
How can I safely set the user principal in a custom WebAPI HttpMessageHandler?
asp.net
.Net
asp.net Mvc
Security
asp.net Web-Api
Multiples Table in DataReader
C#
asp.net
.Net
Sqldatareader
Datareader
Check if a string is a valid date using DateTime.TryParse
C#
.Net
Using a proxy with .NET 4.5 HttpClient
.Net
asp.net Web-Api
.Net 4.5
How to refresh DataSource of a ListBox
C#
.Net
Winforms
Nice & universal way to convert List of items to Tree
C#
.Net
Algorithm
Hierarchical Data
Should I share types between a Web API service and its client ? What are the other options?
.Net
asp.net Web-Api
Dotnet Httpclient
Default value in mvc model using data annotation
C#
.Net
asp.net Mvc
Could not load file or assembly or one of its dependencies
C#
.Net
Reference
Compiler Errors
Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154
.Net
Windows Services
Com Interop
32bit 64bit
System.MissingMethodException: Method not found?
C#
asp.net
.Net
Dll
Nuget
Gmail Error :The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required
C#
.Net
Smtp
Gmail
Get Entity Framework 6 use NOLOCK in its underneath SELECT statements
C#
Sql
.Net
Sql Server
Entity Framework
Is static context always single in C#?
C#
.Net
Associativity math: (a + b) + c != a + (b + c)
C#
.Net
Math
Numeric
Can DateTime tear in a 64 bit environment?
C#
.Net
Datetime
Concurrency
Tearing
No RegionEndpoint or ServiceURL configured
.Net
Amazon Web-Services
Amazon S3
Aws Sdk
Aws Sdk-Net
Re-using HttpClient but with a different Timeout setting per request?
.Net
Dotnet Httpclient
dotnet core System.Text.Json unescape unicode string
C#
.Net
Json
.Net Core
system.text.json
Open .net framework 4.5 project in VS 2022. Is there any workaround?
.Net
Visual Studio
Windows 10
.Net Framework-Version
Why is .NET exception not caught by try/catch block?
C#
.Net
Exception
Antlr
Sending a mail as both HTML and Plain Text in .net
C#
.Net
Why doesn't C# support implied generic types on class constructors?
C#
.Net
Generics
How does the Licenses.licx based .Net component licensing model work?
.Net
Is there any difference between type? and Nullable<type>?
C#
.Net
Nullable
.NET Integer vs Int16?
C#
.Net
vb.net
Variables
Types
How to automatically start your service after install?
.Net
Installation
Service
ArrayList vs List<object>
C#
.Net
List
Arraylist
C# linear algebra library
C#
.Net
Linear Algebra
Nmath
.NET Memory Profiling Tools
.Net
Memory Profiling
Profiling
How to simulate Windows shutdown for debugging?
C#
.Net
Winforms
Shutdown
Do you have to deploy the .pdb file with compiling under release?
.Net
Deployment
Release Management
Why are we not allowed to specify a constructor in an interface?
C#
.Net
vb.net
Oop
linq question: querying nested collections
C#
.Net
Linq
Collections
Linq to-Xml
How to append one DataTable to another DataTable
C#
.Net
vb.net
Datatable
Reverse Sorted Dictionary in .NET
C#
.Net
Dictionary
Iteration
Reverse
How long is a .NET DateTime/TimeSpan tick?
.Net
Datetime
Time
Timespan
Get IPv4 addresses from Dns.GetHostEntry()
C#
.Net
Dns
Ipv6
Ipv4
Using the WPF Dispatcher in unit tests
C#
.Net
Wpf
Unit Testing
Dispatcher
What's the best way to create a short hash, similar to what tiny Url does?
C#
.Net
Hash
Short Url
How to do an "in" query in entity framework?
C#
.Net
Linq
Entity Framework
Best equivalent VisualStudio IDE for Mac to program .NET/C#
C#
.Net
Macos
Ide
When to use mocking versus faking in C# unit testing?
C#
.Net
Unit Testing
Tdd
Get URL parameters from a string in .NET
C#
.Net
Url
Parsing
Parameters
Create SQL Server CE database file programmatically
C#
.Net
Sql Server
Database
Sql Server-Ce
How to set DataGridView textbox column to multi-line?
C#
.Net
Datagridview
Datagridviewcolumn
Error 0x80005000 and DirectoryServices
C#
.Net
Wcf
Active Directory
Directoryservices
Cast delegate to Func in C#
C#
.Net
Casting
Delegates
What should be passed as the objectName when throwing an ObjectDisposedException?
.Net
Idisposable
Objectdisposedexception
How to persist changes in a .settings/.config file across a file version change?
C#
.Net
settings.settings
WrapPanel doesn't wrap in WPF ListView
C#
.Net
Wpf
Listview
How to get mx records for a dns name with System.Net.DNS?
C#
.Net
Dns
Mx Record
Order of events 'Form.Load', 'Form.Shown' and 'Form.Activated' in Windows Forms
C#
.Net
Winforms
Events
How can I make a WPF window maximized on the screen with the mouse cursor?
.Net
Wpf
Multiple Monitors
Maximize
Windowstate
WPF BooleanToVisibilityConverter that converts to Hidden instead of Collapsed when false?
.Net
Wpf
Data Binding
Ivalueconverter
Do else if statements exist in C#?
C#
.Net
If Statement
Am I undermining the efficiency of StringBuilder?
C#
.Net
Stringbuilder
Why is Count not an unsigned integer?
C#
.Net
Entity Framework/Linq to SQL: Skip & Take
C#
.Net
Linq to-Sql
Sql Server-2008
Entity Framework-4
Quick ways to test OLE DB Connection String
.Net
Connection String
Oledb
Database Connection
Inno Setup: Verify that .NET 4.0 is installed
.Net
Inno Setup
What is C# 5 and where does it come from?
C#
.Net
Visual Studio
What does it really mean to target a framework, and how do I maximize compatibility?
C#
.Net
Assemblies
Compatibility
Backwards Compatibility
What is ResolveAssemblyReference.cache?
.Net
Visual Studio
Resolveassemblyreference
How to output a variable value to the log from MSBuild
.Net
Debugging
Msbuild
Converting country codes in .NET
C#
.Net
Locale
Globalization
Iso
Coloring Gridlines in WPF Datagrid
.Net
Wpf
Xaml
Datagrid
Should IDisposable.Dispose() be made safe to call multiple times?
C#
.Net
Idisposable
C#: yield return range/collection
C#
.Net
Yield
How do I get unit tests to run on a x64 platform
C#
.Net
asp.net
Visual Studio
Calculating Count for IEnumerable (Non Generic)
C#
.Net
Linq
Extension Methods
Ienumerable
What is the URL for NuGet Gallery to access (nuget.org) from VS2010?
.Net
Visual Studio-2010
Nuget
How to pass specific value to the converter parameter?
.Net
Wpf
Xaml
Binding
Converter
Covariance and IList
C#
.Net
.Net 4.0
Covariance
Calling generic method using reflection in .NET
.Net
Generics
Reflection
Is there a list of .Net Exception types and advice on when to use them?
.Net
Exception
get the titles of all open windows
C#
.Net
Windows
C# List - Removing items while looping / iterating
C#
.Net
List
Collections
MemoryCache Empty : Returns null after being set
asp.net
.Net
asp.net Mvc
Caching
Memorycache
Obtaining only the filename when using OpenFileDialog property "FileName"
C#
.Net
Filenames
Openfiledialog
Why do I get this compile error trying to call a base constructor/method that takes a dynamic argument?
C#
.Net
C# 4.0
Dynamic
Compiler Construction
Reactive Extension (Rx) tutorial that is up to date
C#
.Net
system.reactive
How to set the first few characters of a WinForms TextBox to Read-Only?
C#
.Net
Winforms
Save time with parallel FOR loop
C#
.Net
Parallel Extensions
Is "ReferenceEquals(myObject, null)" better practice than "myObject == null"?
C#
.Net
vb.net
How to serialize/deserialize to `Dictionary<int, string>` from custom XML not using XElement?
C#
.Net
Xml
Mono
How do I detect what .NET Framework versions and service packs are installed?
.Net
Installation
Version Detection
What is difference between MemoryCache vs ObjectCache in .net 4.0?
C#
.Net
.Net 4.0
.NET Dictionary: get or create new
C#
.Net
Dictionary
Insert Update
What does "DisplayClass" name mean when calling lambda?
C#
.Net
Lambda
Array bounds check efficiency in .net 4 and above
C#
.Net
Performance
Bounds Check-Elimination
Lambda expression in attribute constructor
C#
.Net
Reflection
Attributes
Custom Attributes
Why is Azure deployment slower on Windows 2012 Server than on Windows 2008 Server
asp.net
.Net
Performance
Azure
Windows Server-2012
Changing the scheme of System.Uri
C#
.Net
Url
Uri
ASP.net Getting the error "Access to the path is denied." while trying to upload files to my Windows Server 2008 R2 Web server
C#
asp.net
.Net
asp.net 4.0
Windows Server-2008-R2
Why does Monitor.PulseAll result in a "stepping stair" latency pattern in signaled threads?
C#
.Net
Multithreading
Latency
Using CancellationToken for timeout in Task.Run does not work
C#
.Net
Task Parallel-Library
Cancellationtokensource
Cancellation Token
New-Object : Cannot find an overload for "PSCredential" and the argument count: "2"
.Net
Powershell
Reading an int that's updated by Interlocked on other threads
C#
.Net
Multithreading
Interlocked
Interlocked Increment
Hidden Features of ASP.NET
asp.net
.Net
Why can't I define a default constructor for a struct in .NET?
C#
.Net
Struct
How can I make the cursor turn to the wait cursor?
C#
.Net
Winforms
User Interface
Mouse Cursor
TransactionScope automatically escalating to MSDTC on some machines?
C#
.Net
Transactions
Transactionscope
Msdtc
TypeLoadException says 'no implementation', but it is implemented
C#
.Net
Fusion
Typeloadexception
ASP.NET MVC - Find Absolute Path to the App_Data folder from Controller
.Net
asp.net Mvc
Absolute Path
Get Month name from month number
C#
.Net
Datetime
Confusion regarding threads and if asynchronous methods are truly asynchronous in C#
C#
.Net
Asynchronous
The current .NET SDK does not support targeting .NET Core 3.0 | 3.1 | 5.0 | 6.0
asp.net
.Net
.Net Core
Msbuild
Comparing two objects with == operator
C#
.Net
.Net 6.0
Returning DataTables in WCF/.NET
C#
.Net
Wcf
Web Services
Datatable
Does anyone have any real-world experience of CSLA?
.Net
Frameworks
Csla
How to prevent flickering in ListView when updating a single ListViewItem's text?
C#
.Net
Winforms
Listview
== vs. Object.Equals(object) in .NET
.Net
How to unload an assembly from the primary AppDomain?
C#
.Net
Appdomain
What does "Cannot evaluate expression because the code of the current method is optimized." mean?
C#
.Net
Debugging
Optimization
Compiler Construction
Using InstallUtil and silently setting a windows service logon username/password
.Net
Windows Services
Installation
Windows Installer
Best way to bind WPF properties to ApplicationSettings in C#?
C#
.Net
Wpf
Visual Studio
Why are try blocks expensive?
.Net
Coding Style
Tracing versus Logging and how does log4net fit in?
.Net
Logging
Log4net
Trace
How do I get the HTML output of a UserControl in .NET (C#)?
C#
Html
.Net
User Controls
Get File Icon used by Shell
C#
.Net
vb.net
Winforms
Shell Icons
How can I save an email instead of sending when using SmtpClient?
C#
.Net
Email
Smtp
Make a XAML file internal in .NET
.Net
Wpf
Silverlight
Xaml
Compare compiled .NET assemblies?
C#
.Net
vb.net
Debugging
Reverse Engineering
Difference between AppDomain, Assembly, Process, and a Thread
.Net
Can I make XmlSerializer ignore the namespace on deserialization?
C#
.Net
Serialization
Xml Serialization
How to send an HTTPS GET Request in C#
C#
.Net
Ssl
Httpwebrequest
C# automatic property deserialization of JSON
C#
.Net
Json
Serialization
Automatic Properties
.NET virus scanning API
C#
.Net
Api
Antivirus
In .NET/C# test if process has administrative privileges
C#
.Net
Windows
Security
What are the differences between the XmlSerializer and BinaryFormatter
C#
.Net
Serialization
Xml Serialization
Binary Serialization
What language is .NET Framework written in?
.Net
C++
Programming Languages
How to create a XmlDocument using XmlWriter in .NET?
.Net
Xmldocument
Xmlwriter
Why aren't there macros in C#?
C#
.Net
Macros
C Preprocessor
Win32 API function to programmatically enable/disable device
C#
.Net
Windows
Winapi
Pinvoke
.NET Asynchronous stream read/write
C#
.Net
Asynchronous
Concurrency
How to start WinForm app minimized to tray?
C#
.Net
Winforms
Visual Studio-2008
Systray
.NET / Windows Forms: remember windows size and location
C#
.Net
Winforms
Window
Adding and removing users from Active Directory groups in .NET
C#
.Net
Active Directory
Ldap
Active Directory-Group
Error in Process.Start() -- The system cannot find the file specified
C#
.Net
Process
Intersect LINQ query
C#
.Net
Linq
Proper way to Dispose of a BackGroundWorker
C#
.Net
Multithreading
Backgroundworker
Converting an integer to a boxed enum type only known at runtime
C#
.Net
Reflection
Enums
Initial capacity of collection types, e.g. Dictionary, List
C#
.Net
Memory Management
Collections
Object Initializers
Multiple values for a single config key
.Net
asp.net
Configuration
What is the simplest C# function to parse a JSON string into an object?
C#
.Net
Wpf
Json
using ILMerge with .NET 4 libraries
.Net
Dll
Assemblies
C# 4.0
Ilmerge
Automatically decompress gzip response via WebClient.DownloadData
.Net
Gzip
Webclient
Why does C# execute Math.Sqrt() more slowly than VB.NET?
C#
.Net
vb.net
Benchmarking
Determine via C# whether a string is a valid file path
C#
.Net
Validation
Path
Filesystems
How can I programmatically check (parse) the validity of a TSQL statement?
C#
.Net
Sql Server
Tsql
ado.net
What is a good unique PC identifier?
C#
.Net
Guid
The Ultimate Visual Studio Solution Structure
.Net
Visual Studio
Projects and-Solutions
Entity Framework Code Only error: the model backing the context has changed since the database was created
C#
.Net
Entity Framework
Entity Framework-4
Why we need Thread.MemoryBarrier()?
C#
.Net
Multithreading
Thread Safety
Memory Barriers
ASP.NET MVC HTML helper methods for new HTML5 input types
.Net
asp.net Mvc
Html
Html Helper
Html Input
GetMethod for generic method
C#
.Net
Reflection
One or more types required to compile a dynamic expression cannot be found. Are you missing references to Microsoft.CSharp.dll and System.Core.dll?
C#
.Net
.NET HashTable Vs Dictionary - Can the Dictionary be as fast?
C#
.Net
Collections
Dictionary
Hashtable
Performance differences between debug and release builds
C#
.Net
Performance
Debugging
Configuration
Regular expression for 10 digit number without any special characters
C#
.Net
Regex
RegEx for an IP Address
C#
.Net
Regex
Most efficient way to check if an object is a value type
C#
.Net
Performance
Value Type
Which Micro ORM to use?
C#
.Net
Orm
Maximize WPF Window on the current screen
C#
.Net
Wpf
Windows
Why can't a duplicate variable name be declared in a nested local scope?
C#
.Net
How to read values from custom section in web.config
C#
.Net
Web Config
.Net 2.0
How to check if another instance of the application is running
C#
.Net
Wpf
Windows
Caching reflection data
C#
.Net
Garbage Collection
.Net Assembly
C# Clear Session
C#
.Net
asp.net
Session
Page Lifecycle
How can I securely embed a static string (key) in C#?
C#
.Net
String
Windows Phone-7
C# 4.0
How do I make the value of an XElement be wrapped in ![CDATA[***]]?
C#
.Net
Xml
Linq to-Xml
How to get the name of current function?
C#
.Net
system.reflection
AssemblyInfo version information asterisks
C#
.Net
Use Google Analytics API to show information in C#
C#
.Net
Google Api
Google Analytics-Api
Escape & in App.config
.Net
App Config
When to use InvalidOperationException or NotSupportedException?
C#
.Net
Exception
Invalidoperationexception
Notsupportedexception
What does the buffered parameter do in Dapper dot net?
.Net
Sqldatareader
Dapper
Convert result of matches from regex into list of string
C#
.Net
Regex
How do I wait until Task is finished in C#?
C#
.Net
Task
Task Parallel-Library
Wait
Why is a "bindingRedirect" added to the app.config file after adding the Microsoft.Bcl.Async package?
C#
.Net
App Config
Base Class-Library
What is HttpRequestMessage.Properties?
C#
.Net
Dotnet Httpclient
Get SQL query from LINQ to SQL?
C#
.Net
Linq to-Sql
The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration
asp.net
.Net
Iis 7
Web Config
Iis 7.5
Comparison between List, IList, and IEnumerable
C#
.Net
What's the difference between SortedList and SortedDictionary?
C#
.Net
Generics
Sortedlist
Sorteddictionary
How to get current working directory path c#?
C#
.Net
Visual Studio-2010
C# 4.0
Running self-hosted OWIN Web API under non-admin account
C#
.Net
asp.net Web-Api
Owin
What is really a Principal in .NET?
C#
.Net
Security
Can you install and run apps built on the .NET framework on a Mac?
.Net
Macos
Difference between .Net Core, Portable, Standard, Compact, UWP, and PCL?
C#
.Net
Uwp
.Net Core
Portable Class-Library
Does Visual Studio 2017 work with Code Contracts?
C#
.Net
Visual Studio-2017
Code Contracts
TLS 1.2 not negotiated in .NET 4.7 without explicit ServicePointManager.SecurityProtocol call
C#
.Net
Winforms
Httpwebrequest
tls1.2
How can I change a .NET standard library to a .NET framework library?
C#
.Net
.Net Standard
.Net Framework-Version
.Net 4.6
Cannot access a disposed object. A common cause of this error is disposing a context
.Net
Entity Framework
.Net Core
Entity Framework-Core
How can I register a global hot key to say CTRL+SHIFT+(LETTER) using WPF and .NET 3.5?
C#
.Net
Wpf
Windows
Hotkeys
Determine file type of an image
.Net
Image
Content Type
Mime Types
Good example of use of AppDomain
.Net
Appdomain
Conditions when finally does not execute in a .net try..finally block
.Net
Exception Handling
Auto-generation of .NET unit tests
C#
.Net
Unit Testing
Automation
Automated Tests
Raising C# events with an extension method - is it bad?
C#
.Net
Events
Event Handling
Extension Methods
How do I pass a value from a child back to the parent form?
C#
.Net
Winforms
Parent Child
How to get Printer Info in .NET?
C#
.Net
Printing
Printers
Printdialog
How is memory allocated for a static variable?
C#
.Net
Memory Management
Assembly-wide / root-level styles in WPF class library
C#
.Net
Wpf
Xaml
How to measure code performance in .NET?
.Net
Performance
Benchmarking
Requested registry access is not allowed
C#
.Net
Security
Uac
Registry
Create instance of generic type whose constructor requires a parameter?
C#
.Net
Generics
Reading/writing an INI file
C#
.Net
Ini
How do I copy the contents of a String to the clipboard in C#?
C#
.Net
Clipboard
Dynamically create an object of <Type>
C#
.Net
Dynamic
Does .NET's HttpWebResponse uncompress automatically GZiped and Deflated responses?
C#
.Net
Httpwebrequest
Gzip
Deflate
How to extract a substring from a .NET RegEx?
C#
.Net
Regex
IIS Application pool PID
.Net
Iis
Application Pool
Pid
How to get difference between two dates in Year/Month/Week/Day?
C#
.Net
Datetime
Shortest way to create a List<T> of a repeated element
C#
.Net
.Net 3.5
List
Why are many ports of languages to .net prefixed with 'Iron'?
.Net
Naming Conventions
How performant is StackFrame?
C#
.Net
Performance
Logging
Convert DataTable to List<T>
C#
.Net
Generics
Datatable
How to set the InnerException of custom Exception class from its constructor
C#
.Net
Exception
Logging
Reflection
WPF CreateBitmapSourceFromHBitmap() memory leak
C#
.Net
Wpf
Memory Leaks
C++ MFC vs .NET?
C#
.Net
C++
Mfc
Visual C++
.NET code to send ZPL to Zebra printers
C#
.Net
Zpl Ii
Zebra Printers
Zpl
How do I determine a mapped drive's actual path?
C#
.Net
Windows
vb.net
Guid == null should not be allowed by the compiler
C#
.Net
.Net 3.5
Guid
C# XmlSerializer BindingFailure
C#
.Net
Visual Studio-2008
Xmlserializer
What does the error "the exec task needs a command to execute" mean?
C#
.Net
Exception
Compiler Construction
How to tell if a thread is the main thread in C#
C#
.Net
Multithreading
How do I know what monitor a WPF window is in
C#
.Net
Wpf
How Random is System.Guid.NewGuid()? (Take two)
.Net
Random
Guid
How can I run a static constructor?
C#
.Net
Static Constructor
The CLR has been unable to transition from COM context [...] for 60 seconds
C#
.Net
How can I write fast colored output to Console?
C#
.Net
Console Application
Why do arrays in .net only implement IEnumerable and not IEnumerable<T>?
C#
.Net
Arrays
Ienumerable
Ienumerator
How can I fix the form size in a C# Windows Forms application and not to let user change its size?
C#
.Net
Winforms
Size
Fixed
Best ways to format LINQ queries
.Net
Linq
Formatting
Code Readability
Strange casting behaviour. Cannot cast object (int) to long
C#
.Net
Clr
How not persist property EF4 code first?
C#
.Net
Entity Framework
Entity Framework-4
Ef4 Code-Only
IEnumerable is empty?
.Net
Linq
Ienumerable
execute c# code at runtime from code file
C#
.Net
Runtime
Csharpcodeprovider
Visual Studio "Debug Unit Test" fails to hit breakpoints
.Net
Visual Studio
Debugging
Visual Studio-2008
Resharper
installing windows service with SC.exe or InstallUtil.exe - there is difference but which?
.Net
Windows Services
Installutil
What causes memory fragmentation in .NET
C#
.Net
Memory Management
Memory Leaks
Fragmentation
WPF-MVVM: Setting UI control focus from ViewModel
C#
.Net
Wpf
Mvvm
Focus
Why Math.Ceiling returns double?
C#
.Net
Ceil
Add vertical scroll bar to panel
C#
.Net
Winforms
Scroll
Is there a Math API for Pow(decimal, decimal)
C#
.Net
Math
Decimal
return type is less accessible than method
C#
.Net
Reading file content to string in .Net Compact Framework
C#
.Net
Compact Framework
minidump vs. fulldump?
.Net
Dump
Crash Dumps
Minidump
SQL Server stops loading assembly
.Net
Sql Server
Logging
Sql Server-2008-R2
Sqlclr
Can I set a breakpoint when variable is getting a specific value in .NET?
.Net
Visual Studio
Debugging
Breakpoints
Conditional Breakpoint
Best way to convert IEnumerable<char> to string?
.Net
Regex
Performance
Performance Testing
Expression.Lambda and query generation at runtime, simplest "Where" example
C#
.Net
Lambda
Expression Trees
Dynamic Language-Runtime
SELECT * FROM X WHERE id IN (...) with Dapper ORM
.Net
Sql
Dapper
How can I wrap text in a label using WPF?
C#
.Net
Wpf
Label
Word Wrap
What difference does .AsNoTracking() make?
C#
.Net
Entity Framework
Entity Framework-4.3
DateTime.Now vs. DateTime.UtcNow
.Net
Language Features
Date
Convert binary string into integer
C#
.Net
String
Binary
How to read an excel file in C# without using Microsoft.Office.Interop.Excel libraries
C#
.Net
Excel
Office Interop
Does C# support a variable number of arguments, and how?
C#
.Net
Variables
Arguments
Params
Get a DataTable Columns DataType
C#
.Net
Datatable
Datagridviewcolumn
Server Client send/receive simple text
C#
.Net
Winforms
Sockets
C# Decimal.Epsilon
C#
.Net
Decimal
Epsilon
What event signals that a UserControl is being destroyed?
C#
.Net
Winforms
Events
Asynchronous
DataColumn Name from DataRow (not DataTable)
C#
.Net
Datarow
Datacolumn
How to round a integer to the close hundred?
C#
.Net
Math
Is there any entity framework equivalent in java?
Java
.Net
Construct LambdaExpression for nested property from string
C#
.Net
Linq
Lambda
Expression Trees
Remove Highlight Effect from ListViewItem
.Net
Wpf
Xaml
Styles
Itemcontainerstyle
Where can I download the .NET 4.5 Multitargeting Pack for my build server?
.Net
Continuous Integration
.Net 4.5
Await for list of Tasks
C#
.Net
Task Parallel-Library
Async Await
Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies
C#
.Net
Frameworks
Get short date for System Nullable datetime (datetime ?) in C#
C#
.Net
String
Datetime
Nullable
The type 'System.Data.Entity.DbContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'EntityFramework 2
.Net
Entity Framework
Repository pattern and mapping between domain models and Entity Framework
.Net
Entity Framework
Domain Driven-Design
Repository Pattern
Onion Architecture
Shortest way of checking if Double is "NaN"
C#
.Net
Floating Point
"Error occurred during a cryptographic operation" when decrypting Forms cookie
C#
asp.net
.Net
Cryptographicexception
Replace a object in a list of objects
C#
.Net
List
Variable Assignment
Generic List
Why does .NET use banker's rounding as default?
.Net
Rounding
Guid is all 0's (zeros)?
C#
.Net
Wcf
Web Services
Guid
Build error, This project references NuGet
.Net
Visual Studio
Nuget
Nuget Package-Restore
ASP.NET Core 1.1 runs fine locally but when publishing to Azure says "An error occurred while starting the application."
C#
.Net
Azure
Model View-Controller
asp.net Core
'Newtonsoft.Json' already has a dependency defined for 'Microsoft.CSharp'
.Net
json.net
Jsonparser
How do I use reflection to call a generic method?
C#
.Net
Generics
Reflection
How can I generate random alphanumeric strings?
C#
.Net
Random
How to mark a method as obsolete or deprecated?
C#
.Net
Versioning
Deprecated
Could not find a part of the path ... bin\roslyn\csc.exe
C#
asp.net
.Net
asp.net Mvc
Roslyn
How to change the value of attribute in appSettings section with Web.config transformation
C#
asp.net
.Net
Web Config
Duplicate keys in .NET dictionaries?
C#
.Net
Dictionary
Multimap
Merging two arrays in .NET
C#
.Net
Arrays
How do I decompile a .NET EXE into readable C# source code?
C#
.Net
Reverse Engineering
Decompiling
How to Convert JSON object to Custom C# object?
C#
asp.net
.Net
Ajax
Json
What is the difference between int, Int16, Int32 and Int64?
C#
.Net
Does C# 6.0 work for .NET 4.0?
C#
.Net
C# 6.0
How to get the current user in ASP.NET MVC
C#
.Net
asp.net Mvc
Iis
Forms Authentication
What really happens in a try { return x; } finally { x = null; } statement?
C#
.Net
Exception Handling
How do I access named capturing groups in a .NET Regex?
C#
.Net
Regex
Why does .NET foreach loop throw NullRefException when collection is null?
C#
.Net
Entity Framework and Connection Pooling
.Net
Database
Entity Framework
ado.net
Connection Pooling
.NET Standard vs .NET Core
.Net
.Net Core
.Net Standard
What is the correct way to make a custom .NET Exception serializable?
.Net
Exception
Serialization
Is there a .NET/C# wrapper for SQLite?
C#
.Net
Database
Sqlite
How do I represent a time only value in .NET?
C#
.Net
Datetime
Time
What is the 'dynamic' type in C# 4.0 used for?
C#
.Net
Dynamic
C# 4.0
Get the correct week number of a given date
C#
asp.net
.Net
Date
Databinding an enum property to a ComboBox in WPF
.Net
Wpf
Using MySQL with Entity Framework
Mysql
.Net
Entity Framework
ado.net
Predicate Delegates in C#
C#
.Net
Predicate
Decimal precision and scale in EF Code First
C#
.Net
Entity Framework
Ef Code-First
Decimal
Generate C# class from XML
C#
.Net
Xml
Xsd
How do I turn a C# object into a JSON string in .NET?
C#
.Net
Json
Serialization
Deserialize JSON into C# dynamic object?
C#
.Net
Json
Serialization
Dynamic
Group By Multiple Columns
C#
.Net
Linq
Group By
Aggregate
How to escape braces (curly brackets) in a format string in .NET
C#
.Net
String
Parsing
Formatting
LINQ query on a DataTable
C#
.Net
Linq
Datatable
.Net 3.5
What is the best way to check for Internet connectivity using .NET?
C#
.Net
Internet Connection
Remove items from one list in another
C#
.Net
List
Read connection string from web.config
C#
.Net
asp.net
Web Config
Connection String
What is the difference between a Shared Project and a Class Library in Visual Studio 2015?
C#
.Net
Visual Studio-2015
String vs string in C#
C#
.Net
Performance
String
Types
What is the difference between 'protected' and 'protected internal'?
C#
.Net
Access Modifiers
Does List<T> guarantee insertion order?
C#
.Net
Collections
Multiple actions were found that match the request in Web Api
C#
.Net
asp.net Web-Api
asp.net Web-Api-Routing
What is the maximum possible length of a .NET string?
.Net
String
Limits
HTML.ActionLink method
C#
.Net
asp.net Mvc
Html Helper
Actionlink
How to check for file lock?
C#
.Net
Io
Filelock
ResourceDictionary in a separate assembly
.Net
Wpf
Xaml
Controltemplate
Resourcedictionary
Nullable types and the ternary operator: why is `? 10 : null` forbidden?
C#
.Net
Nullable
Conditional Operator
The model backing the <Database> context has changed since the database was created
.Net
Entity Framework-4
Code First
How to increase the max upload file size in ASP.NET?
C#
.Net
asp.net
File Upload
Sending email through Gmail SMTP server with C#
C#
.Net
Email
Smtp
Gmail
How can I solve a connection pool problem between ASP.NET and SQL Server?
.Net
asp.net
Sql Server
Sql Server-2005
What is the difference between C# and .NET?
C#
.Net
Deciding between HttpClient and WebClient
C#
.Net
Rest
Webclient
Dotnet Httpclient
How do you configure an OpenFileDialog to select folders?
.Net
Windows
Winapi
Openfiledialog
Find a private field with Reflection?
C#
.Net
Reflection
.Net Attributes
How do I trap ctrl-c (SIGINT) in a C# console app
C#
.Net
Console
Why does Boolean.ToString output "True" and not "true"
C#
.Net
Boolean
ASP.NET MVC Razor render without encoding
C#
.Net
asp.net
asp.net Mvc
Razor
Difference between ObservableCollection and BindingList
C#
.Net
Wpf
Observablecollection
Wpf 4.0
Getting the first and last day of a month, using a given DateTime object
C#
.Net
Winforms
Datetime
How can I get the application's path in a .NET console application?
C#
.Net
Console
Console Application
How to convert UTF-8 byte[] to string
C#
.Net
Arrays
String
Type Conversion
Html.Partial vs Html.RenderPartial & Html.Action vs Html.RenderAction
.Net
asp.net Mvc
Partial Views
Renderpartial
Renderaction
.NET - Get protocol, host, and port
.Net
asp.net
Url
Uri
Authority
How do I extract text that lies between parentheses (round brackets)?
C#
.Net
Regex
Is there any significant difference between using if/else and switch-case in C#?
C#
.Net
Switch Statement
How to determine if a type implements a specific generic interface type
C#
.Net
Reflection
How to delete a file after checking whether it exists
C#
.Net
Windows
For i = 0, why is (i += i++) equal to 0?
C#
.Net
How to concatenate two IEnumerable<T> into a new IEnumerable<T>?
C#
.Net
Ienumerable
Concatenation
Will Google Android ever support .NET?
Android
.Net
Mono
Will code in a Finally statement fire if I return a value in a Try block?
C#
.Net
Exception Handling
Try Catch
Extension methods must be defined in a non-generic static class
C#
.Net
Linq
Extension Methods
Compiler Errors
How do you share code between projects/solutions in Visual Studio?
.Net
Visual Studio
Code Sharing
Convert a list to a string in C#
C#
.Net
String
List
How to add a line break in C# .NET documentation
C#
.Net
Xml Documentation
How to automatically select all text on focus in WPF TextBox?
.Net
Wpf
Silverlight
Textbox
Linq to Entities - SQL "IN" clause
.Net
Linq
Linq to-Entities
In Clause
How to change the timeout on a .NET WebClient object
C#
.Net
File
Download
Webclient
How to dynamically create a class?
C#
.Net
reflection.emit
Dynamic Class-Creation
How do I convert a decimal to an int in C#?
C#
.Net
Int
Decimal
Can anyone explain this strange behavior with signed floats in C#?
C#
.Net
Floating Point
Create an instance of a class from a string
C#
.Net
Instantiation
system.type
Handling Dialogs in WPF with MVVM
.Net
Wpf
Design Patterns
Mvvm
Dialog
How can I make a .NET Windows Forms application that only runs in the System Tray?
C#
.Net
Winforms
System Tray
When to use Cast() and Oftype() in Linq
C#
.Net
Linq
Why is processing a sorted array slower than an unsorted array?
C#
.Net
Performance
Language Agnostic
Questions every good .NET developer should be able to answer?
.Net
Invalid postback or callback argument. Event validation is enabled using '<pages enableEventValidation="true"/>'
.Net
asp.net
.Net 2.0
Postback
Argumentexception
Why use try {} finally {} with an empty try block?
C#
.Net
How can I convert comma separated string into a List<int>
C#
.Net
String
List
What is the equivalent of bigint in C#?
C#
.Net
Sql Server
Bigint
What is the use of ObservableCollection in .net?
C#
.Net
Observablecollection
MVVM: Tutorial from start to finish?
C#
.Net
Wpf
Mvvm
Properties order in Margin
.Net
Wpf
Xaml
How do I find the PublicKeyToken for a particular dll?
.Net
Dll
.Net Assembly
Publickeytoken
Can't find how to use HttpContent
C#
asp.net
.Net
Dll
Why no ICloneable<T>?
C#
.Net
Icloneable
How do I split a string by a multi-character delimiter in C#?
C#
.Net
String
LINQ Single vs First
.Net
Linq
How do I get the AM/PM value from a DateTime?
C#
.Net
Datetime
Datetime Format
Gregorian Calendar
A definitive guide to API-breaking changes in .NET
.Net
Clr
Versioning
Cls Compliant
Get Enum from Description attribute
C#
.Net
Attributes
Enums
Priority queue in .Net
C#
.Net
Data Structures
Heap
Priority Queue
How do I get an animated gif to work in WPF?
.Net
Wpf
Animated Gif
How to get object size in memory?
C#
.Net
Performance
Memory
Profiling
Exception.Message vs Exception.ToString()
C#
.Net
Exception
Exception Handling
Is it possible to write to the console in colour in .NET?
C#
.Net
vb.net
Colors
How do you get the width and height of a multi-dimensional array?
C#
.Net
Arrays
Multidimensional Array
What does the caret (‘^’) mean in C++/CLI?
.Net
C++ Cli
Find all controls in WPF Window by type
C#
.Net
Wpf
How can I run PowerShell with the .NET 4 runtime?
.Net
Powershell
.Net 4.0
Easiest way to compare arrays in C#
C#
.Net
Arrays
Compare
Difference between "\n" and Environment.NewLine
C#
.Net
Cross Platform
How to get a list of properties with a given attribute?
C#
.Net
Reflection
Bring a window to the front in WPF
C#
.Net
Wpf
Winapi
Pinvoke
LINQ query to return a Dictionary<string, string>
C#
.Net
Linq
Dictionary
Display a tooltip over a button using Windows Forms
.Net
Winforms
Button
Tooltip
What does "Object reference not set to an instance of an object" mean?
.Net
Nullreferenceexception
When should TaskCompletionSource<T> be used?
C#
.Net
.Net 4.0
Task Parallel-Library
Taskcompletionsource
Build query string for System.Net.HttpClient get
C#
.Net
Http
Convert file path to a file URI?
C#
.Net
Path
Uri
Reading Excel files from C#
C#
.Net
Excel
Ms Office
Escape curly brace '{' in String.Format
C#
.Net
String
Task continuation on UI thread
C#
.Net
Wpf
Multithreading
Task
What's the difference between EscapeUriString and EscapeDataString?
.Net
Urlencode
LINQ - Full Outer Join
C#
.Net
Linq
Outer Join
Full Outer-Join
You must add a reference to assembly 'netstandard, Version=2.0.0.0
asp.net
.Net
asp.net Mvc
.Net Framework-Version
How to mark a class as Deprecated?
C#
.Net
Oop
Deprecated
Check for column name in a SqlDataReader object
C#
.Net
Sqldatareader
AutoMapper: "Ignore the rest"?
.Net
Automapper
Wait until a process ends
C#
.Net
Process
What is the use for Task.FromResult<TResult> in C#
C#
.Net
Task Parallel-Library
Task
Async Await
.NET Format a string with fixed spaces
.Net
String
What is the purpose of the "Prefer 32-bit" setting in Visual Studio and how does it actually work?
C#
.Net
Visual Studio
Compilation
Cpu Architecture
Performance of Arrays vs. Lists
.Net
Performance
Arrays
Generics
List
Editing dictionary values in a foreach loop
C#
.Net
.Net 2.0
How do I create directory if it doesn't exist to create a file?
C#
.Net
File Io
What is The difference between ListBox and ListView
.Net
Wpf
Wpf Controls
Wpf Listview
What are the dangers when creating a thread with a stack size of 50x the default?
C#
.Net
Memory
Stack Memory
IOException: The process cannot access the file 'file path' because it is being used by another process
C#
.Net
Language Agnostic
Ioexception
Why does ReSharper want to use 'var' for everything?
C#
.Net
Visual Studio
Resharper
Var
string.IsNullOrEmpty(string) vs. string.IsNullOrWhiteSpace(string)
C#
.Net
String
String vs. StringBuilder
C#
.Net
Performance
How to edit .csproj file
C#
asp.net
.Net
Csproj
Is there a way to call a stored procedure with Dapper?
.Net
Stored Procedures
Orm
Dapper
Linq style "For Each"
C#
.Net
Linq
Foreach
How to check if an object is nullable?
C#
.Net
Nullable
Choosing the default value of an Enum type without having to change values
C#
.Net
Enums
.Net HttpWebRequest.GetResponse() raises exception when http status code 400 (bad request) is returned
.Net
Httpwebrequest
What is the correct SQL type to store a .Net Timespan with values > 24:00:00?
.Net
Sql Server
Timespan
Why does visual studio 2012 not find my tests?
C#
.Net
Visual Studio
Unit Testing
Dependent DLL is not getting copied to the build output folder in Visual Studio
C#
.Net
Visual Studio-2010
Dll
Reference
How costly is .NET reflection?
C#
.Net
Performance
Reflection
How do I get and set Environment variables in C#?
C#
.Net
.Net 2.0
Environment Variables
Good introduction to the .NET Reactive Framework
C#
.Net
Asynchronous
system.reactive
Getting assembly name
C#
.Net
Reflection
Assemblyinfo
What is the difference between .NET Core and .NET Standard Class Library project types?
.Net
.Net Core
Class Library
.Net Standard
.NET String.Format() to add commas in thousands place for a number
C#
.Net
String
Format
How do I force my .NET application to run as administrator?
C#
.Net
Windows 7
Administrator
Elevated Privileges
DateTime vs DateTimeOffset
C#
.Net
Datetime
Timezone
Datetimeoffset
Best way to repeat a character in C#
C#
.Net
String
Create a completed Task
C#
.Net
Async Await
Task Parallel-Library
How can I make a ComboBox non-editable in .NET?
C#
.Net
Winforms
Combobox
.Net Data structures: ArrayList, List, HashTable, Dictionary, SortedList, SortedDictionary -- Speed, memory, and when to use each?
C#
.Net
vb.net
Arrays
Data Structures
What's the difference between ContentControl and ContentPresenter?
.Net
Wpf
Contentcontrol
Contentpresenter
Creating a ZIP archive in memory using System.IO.Compression
C#
.Net
Zip
Compression
C# Ziparchive
Is there an easy way to create ordinals in C#?
C#
.Net
Ordinals
Why Func<T,bool> instead of Predicate<T>?
C#
.Net
Predicate
Func
What does 'useLegacyV2RuntimeActivationPolicy' do in the .NET 4 config?
.Net
.Net 4.0
App Config
Mixed Mode
How do I improve ASP.NET MVC application performance?
.Net
asp.net Mvc
Performance
Iis
Singleton by Jon Skeet clarification
C#
.Net
Design Patterns
Architecture
Singleton
How to find out if a file exists in C# / .NET?
C#
.Net
Io
Find unused code
C#
.Net
Refactoring
Does C# 8 support the .NET Framework?
C#
.Net
Visual Studio
.Net Standard
C# 8.0
HTTP POST Returns Error: 417 "Expectation Failed."
C#
.Net
Http
Http Post
Webclient
Retargeting solution from .Net 4.0 to 4.5 - how to retarget the NuGet packages?
.Net
Nuget
Visual Studio-2012
.Net 4.5
Could not find any resources appropriate for the specified culture or the neutral culture
.Net
asp.net
Embedded Resource
Resourcemanager
What's the difference between IEquatable and just overriding Object.Equals()?
C#
.Net
Equals
Equality
Iequatable
Remove trailing zeros
C#
.Net
Decimal
Visual Studio popup: "the operation could not be completed"
.Net
Visual Studio
Visual Studio-2015
How to omit methods from Swagger documentation on WebAPI using Swashbuckle
C#
asp.net
.Net
Swagger
How to provide user name and password when connecting to a network share
C#
.Net
Winapi
Networking
Passwords
Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine
C#
.Net
Oledb
32bit 64bit
Jet
Post parameter is always null
C#
.Net
asp.net Web-Api
asp.net Web-Api-Routing
Why does Path.Combine not properly concatenate filenames that start with Path.DirectorySeparatorChar?
C#
.Net
File
How to convert linq results to HashSet or HashedSet
C#
.Net
Linq
No ConcurrentList<T> in .Net 4.0?
C#
.Net
Parallel Processing
Task Parallel-Library
Most common C# bitwise operations on enums
C#
.Net
Enums
Bit Manipulation
Flags
Sending email in .NET through Gmail
C#
.Net
Email
Smtp
Gmail
Is there a way to check if a file is in use?
C#
.Net
File
File Io
File Locking
An existing connection was forcibly closed by the remote host
C#
.Net
Networking
Sockets
What method in the String class returns only the first N characters?
C#
.Net
String
Character
How to return a value from a Form in C#?
C#
.Net
Winforms
Parameter Passing
Max return value if empty query
C#
.Net
Entity Framework
Linq
Lambda
What is an IndexOutOfRangeException / ArgumentOutOfRangeException and how do I fix it?
C#
.Net
Indexoutofrangeexception
Convert String to Type in C#
C#
.Net
String
Types
Can you use reflection to find the name of the currently executing method?
.Net
Reflection
Creating an empty file in C#
C#
.Net
.NET Global exception handler in console application
C#
.Net
vb.net
Exception Handling
Console Application
PowerShell script to return versions of .NET Framework on a machine?
.Net
Powershell
Version
Custom numeric format string to always display the sign
C#
.Net
Formatting
String Formatting
What does CultureInfo.InvariantCulture mean?
.Net
Resharper
What are attributes in .NET?
C#
.Net
Glossary
.Net Attributes
What are major differences between C# and Java?
C#
.Net
Clr
Java
What are 'closures' in .NET?
.Net
Closures
Should functions return null or an empty object?
C#
.Net
Function
Return Value
AutoMapper vs ValueInjecter
C#
.Net
Automapper
Valueinjecter
Object Object-Mapping
Replace multiple characters in a C# string
C#
.Net
String
Node.js vs .Net performance
.Net
Performance
node.js
How change List<T> data to IQueryable<T> data
.Net
Linq
Check if instance is of a type
C#
.Net
Convert a list into a comma-separated string
C#
.Net
How using try catch for exception handling is best practice
C#
.Net
Exception
Try Catch
How to force LINQ Sum() to return 0 while source collection is empty
C#
.Net
Entity Framework
Has an event handler already been added?
C#
.Net
asp.net
How do I find the stack trace in Visual Studio?
.Net
Visual Studio
Debugging
Exception Handling
Stack Trace
string.ToLower() and string.ToLowerInvariant()
C#
.Net
String
Prevent Caching in ASP.NET MVC for specific actions using an attribute
C#
Jquery
.Net
asp.net Mvc
asp.net Mvc-3
Pass An Instantiated System.Type as a Type Parameter for a Generic Class
C#
.Net
Generics
How to handle AccessViolationException
C#
.Net
Exception
Com
Process State-Exception
Parse string to DateTime in C#
C#
.Net
String
Parsing
Datetime
Reading settings from app.config or web.config in .NET
C#
.Net
Configuration
Appsettings
Easiest way to split a string on newlines in .NET?
C#
.Net
String
Split
What are differences between AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion?
.Net
Assemblies
Attributes
When to use .First and when to use .FirstOrDefault with LINQ?
C#
.Net
Linq
How do you sort a dictionary by value?
C#
.Net
Sorting
Dictionary
How do I get the path of the assembly the code is in?
C#
.Net
Reflection
Mbunit
How to enable assembly bind failure logging (Fusion) in .NET
C#
.Net
vb.net
Binding
Assemblies
Where and how is the _ViewStart.cshtml layout file linked?
.Net
asp.net Mvc
asp.net Mvc-3
Razor
What is App.config in C#.NET? How to use it?
C#
.Net
App Config
Path to MSBuild
.Net
Msbuild
What are .NET Assemblies?
C#
.Net
Stream.Seek(0, SeekOrigin.Begin) or Position = 0
C#
.Net
Stream
Why is try {...} finally {...} good; try {...} catch{} bad?
C#
.Net
Exception Handling
Try Catch
Try Catch-Finally
Why isn't String.Empty a constant?
.Net
String
Readonly
Constants
The cast to value type 'Int32' failed because the materialized value is null
C#
.Net
Entity Framework
Linq to-Entities
How to set .net Framework 4.5 version in IIS 7 application pool
.Net
Visual Studio
Iis
How can I run an EXE file from my C# code?
C#
.Net
Difference between Lookup() and Dictionary(Of list())
C#
.Net
vb.net
Linq
How to remove new line characters from a string?
C#
.Net
When to use IList and when to use List
C#
.Net
How to track down log4net problems
.Net
Logging
Log4net
Is Response.End() considered harmful?
.Net
asp.net
How to convert DateTime? to DateTime
C#
.Net
Datetime
Word wrap for a label in Windows Forms
C#
.Net
Winforms
Label
Controls
What's the difference between KeyDown and KeyPress in .NET?
.Net
String was not recognized as a valid DateTime " format dd/MM/yyyy"
C#
.Net
Datetime
Types
Casting
Is there any connection string parser in C#?
C#
.Net
How do I make the return type of a method generic?
C#
.Net
Generics
Return Type
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor'
.Net
Dependency Injection
asp.net Core
Why can't strings be mutable in Java and .NET?
Java
.Net
String
Mutable
How do I get the localhost name in PowerShell?
.Net
Powershell
How to bind an enum to a combobox control in WPF?
C#
.Net
Wpf
Xaml
Data Binding
How to find reason of failed Build without any error or warning
C#
asp.net
.Net
Visual Studio-2010
Why is the Visual Studio 2015/2017/2019 Test Runner not discovering my xUnit v2 tests
.Net
Visual Studio
Unit Testing
Visual Studio-2015
Xunit2
Why can't I have abstract static methods in C#?
C#
.Net
Language Design
How to set session timeout in web.config
C#
asp.net
.Net
Session
Visual Studio-2008
There is no ListBox.SelectionMode="None", is there another way to disable selection in a listbox?
.Net
Wpf
Listbox
AppSettings get value from .config file
C#
.Net
Appsettings
Configurationmanager
How do I convert struct System.Byte byte[] to a System.IO.Stream object in C#?
C#
.Net
Arrays
Stream
ASP.NET Web Site or ASP.NET Web Application?
asp.net
.Net
Visual Studio
Projects and-Solutions
Metadata file '.dll' could not be found
C#
.Net
Wpf
Visual Studio-2008
C# 3.0
How to create a new object instance from a Type
C#
.Net
Performance
Reflection
Types
Error - Unable to access the IIS metabase
C#
.Net
Iis
Iis Metabase
SNIReadSyncOverAsync Performance issue
.Net
Sql Server
ado.net
Dottrace
foreach vs someList.ForEach(){}
C#
.Net
Generics
Loops
Enumeration
Creating a DateTime in a specific Time Zone in c#
C#
.Net
Datetime
Timezone
.Net 3.5
Can you explain the concept of streams?
Java
.Net
Stream
Language Agnostic
Iostream
Visual Studio - Resx File default 'internal' to 'public'
C#
.Net
asp.net
asp.net Mvc
Visual Studio
Converting Stream to String and back...what are we missing?
C#
.Net
Serialization
Deserialization
Protobuf Net
Max or Default?
C#
.Net
Linq
Linq to-Sql
Passing an enum value as command parameter from XAML
.Net
Wpf
Silverlight
Xaml
Command
How can I make Array.Contains case-insensitive on a string array?
.Net
Set background color of WPF Textbox in C# code
C#
.Net
Wpf
Background Color
Is there a way to navigate to real implementation of method behind an interface?
C#
.Net
vb.net
Visual Studio
Why would finding a type's initializer throw a NullReferenceException?
.Net
Reflection
Nullreferenceexception
.Net 4.5
Typeinitializer
Write to Windows Application Event Log
C#
.Net
Windows
Logging
Event Log
C# int to byte[]
C#
.Net
Bit Manipulation
Nfs
Why .NET String is immutable?
C#
.Net
String
Immutability
Do event handlers stop garbage collection from occurring?
C#
.Net
Event Handling
Garbage Collection
What's the difference between an object initializer and a constructor?
C#
.Net
Constructor
Object Initializer
Visual Studio build fails: unable to copy exe-file from obj\debug to bin\debug
C#
.Net
Winforms
Visual Studio
What is the difference between Linq to XML Descendants and Elements
C#
.Net
Xml
Linq to-Xml
Why is DarkGray lighter than Gray?
.Net
system.drawing
Access to the path is denied
C#
.Net
Iis
Path
How can I get the executing assembly version?
C#
.Net
.Net Assembly
Getting exact error type in from DbValidationException
.Net
Entity Framework
Entity Framework-4.1
Ef Code-First
C# Create New T()
C#
.Net
Generics
C# 4.0
.Net 4.0
When is it acceptable to call GC.Collect?
C#
.Net
Garbage Collection
How to read a CSV file into a .NET Datatable
C#
.Net
Csv
Datatable
What is a singleton in C#?
C#
.Net
Singleton
What is ApplicationException for in .NET?
C#
.Net
Exception
Exception Handling
Setting Objects to Null/Nothing after use in .NET
C#
.Net
vb.net
Memory Management
Null
C# Ignore certificate errors?
C#
.Net
Ssl
How to specify a min but no max decimal using the range data annotation attribute?
C#
.Net
asp.net Mvc
Data Annotations
WPF User Control Parent
C#
.Net
Wpf
Server.UrlEncode vs. HttpUtility.UrlEncode
asp.net
.Net
Urlencode
What is the GAC in .NET?
.Net
Gac
One class per file rule in .NET?
C#
.Net
Entity Framework vs LINQ to SQL
.Net
Entity Framework
Linq to-Sql
What's the difference between struct and class in .NET?
.Net
Class
Struct
Value Type
Reference Type
Pass Method as Parameter using C#
C#
.Net
Methods
Delegates
Literal suffix for byte in .NET?
C#
.Net
Value Type
Disable Visual Studio devenv solution save dialog
.Net
Visual Studio
Visual Studio-2012
Understanding garbage collection in .NET
C#
.Net
Garbage Collection
Is there a built-in method to compare collections?
C#
.Net
Collections
Which is generally best to use — StringComparison.OrdinalIgnoreCase or StringComparison.InvariantCultureIgnoreCase?
.Net
vb.net
Localization
Select a Dictionary<T1, T2> with LINQ
C#
.Net
Linq
Generics
How serious is this new ASP.NET security vulnerability and how can I workaround it?
asp.net
.Net
Security
Padding Oracle-Attack
How to get relative path from absolute path
.Net
How do I suspend painting for a control and its children?
C#
.Net
Winforms
Paint
How can I String.Format a TimeSpan object with a custom format in .NET?
C#
.Net
String
Time
Formatting
How to split() a delimited string to a List<String>
C#
.Net
List
Arraylist
NHibernate ISession Flush: Where and when to use it, and why?
.Net
Session
Nhibernate
Flush
How to force uninstallation of windows service
.Net
Windows Services
delegate keyword vs. lambda notation
C#
.Net
Delegates
Lambda
Anonymous Methods
What exceptions should be thrown for invalid or unexpected parameters in .NET?
C#
.Net
vb.net
Exception
How to parse a query string into a NameValueCollection in .NET
.Net
Parsing
Query String
Convert Enum to String
.Net
Enums
What is the 'CLSCompliant' attribute in .NET?
.Net
Cls Compliant
Can the C# interactive window interact with my code?
C#
.Net
Visual Studio
Roslyn
WCF service startup error "This collection already contains an address with scheme http"
.Net
Wcf
Is there a read-only generic dictionary available in .NET?
.Net
Dictionary
Readonly
Is HttpClient safe to use concurrently?
.Net
C# 4.0
Concurrency
Dotnet Httpclient
How to translate between Windows and IANA time zones?
C#
.Net
Timezone
Nodatime
Can I return the 'id' field after a LINQ insert?
C#
.Net
Linq
Linq to-Sql
How do I start a process from C#?
C#
.Net
Windows
Process
process.start
Func<T> with out parameter
C#
.Net
Linq
Generics
Func
Detect Windows version in .NET
C#
.Net
Windows
Operating System
Best C# API to create PDF
C#
.Net
Pdf Generation
Datetime - Get next tuesday
C#
.Net
Date
How can I get the assembly file version
C#
.Net
Assemblies
Version
How do I save a stream to a file in C#?
C#
.Net
Stream
When would I need a SecureString in .NET?
.Net
Security
Encryption
How to delete an element from an array in C#
C#
.Net
Arrays
How to check if IEnumerable is null or empty?
C#
.Net
Linq
Collections
Ienumerable
Can I write into the console in a unit test? If yes, why doesn't the console window open?
C#
.Net
Visual Studio
Unit Testing
Console Application
What is a predicate in c#?
C#
.Net
vb.net
Predicate
What difference is there between WebClient and HTTPWebRequest classes in .NET?
C#
.Net
Httpwebrequest
Webclient
"Items collection must be empty before using ItemsSource."
.Net
Wpf
vb.net
Entity Framework
Binding
Differences between ExpandoObject, DynamicObject and dynamic
C#
.Net
Dynamic
Expandoobject
Dynamicobject
Attempted to read or write protected memory. This is often an indication that other memory is corrupt
C#
.Net
Multithreading
Memory Management
.NET: Simplest way to send POST with data and read response
C#
.Net
Http
Http Post
Httpresponse
Interview questions: WPF Developer
.Net
Wpf
Default implementation for Object.GetHashCode()
.Net
Hash
Gethashcode
How to find path of active app.config file?
C#
.Net
Nunit
App Config
Configurationmanager
How to convert SecureString to System.String?
C#
.Net
Security
Encryption
A circular reference was detected while serializing an object of type 'SubSonic.Schema .DatabaseColumn'.
C#
.Net
Json
Entity Framework
Subsonic
LINQ: "contains" and a Lambda query
C#
.Net
List
Linq
Lambda
Initialize a byte array to a certain value, other than the default null?
C#
.Net
Arrays
Initialization
What is the difference between HashSet<T> and List<T>?
.Net
List
Hashset
Difference
How can I get all constants of a type by reflection?
C#
.Net
Reflection
Constants
How to get awaitable Thread.Sleep?
C#
.Net
Multithreading
Async Await
How do I customize Visual Studio's private field generation shortcut for constructors?
C#
.Net
Visual Studio
Launching an application (.EXE) from C#?
C#
.Net
Windows Vista
Windows Xp
How does RegexOptions.Compiled work?
.Net
Regex
Getting the PublicKeyToken of .Net assemblies
.Net
Visual Studio
Visual Studio-2010
Public Key
Generic List - moving an item within the list
C#
.Net
Generics
List
CryptographicException 'Keyset does not exist', but only through WCF
.Net
Wcf
X509
Getting the application's directory from a WPF application
C#
.Net
Wpf
How to create multiple directories from a single full path in C#?
C#
.Net
Base Class-Library
Trim last character from a string
C#
.Net
Split a string by another string in C#
C#
.Net
String
Split
How to read embedded resource text file
.Net
Embedded Resource
Streamreader
LINQ Aggregate algorithm explained
C#
.Net
Linq
Aggregate
How to delete all files and folders in a directory?
C#
.Net
Most Useful Attributes
C#
.Net
.Net Attributes
How can I know if a process is running?
C#
.Net
Process
EF LINQ include multiple and nested entities
.Net
asp.net Mvc-3
Linq
Entity Framework
Entity Framework-5
Query LOCAL Bitcoin blockchain with C# .NET
C#
.Net
Bitcoin
Blockchain
Anatomy of a "Memory Leak"
.Net
Performance
Memory Leaks
Com Interop
Entity Framework: table without primary key
.Net
Entity Framework
Can Json.NET serialize / deserialize to / from a stream?
.Net
Serialization
json.net
Set database timeout in Entity Framework
C#
.Net
asp.net Mvc
Entity Framework
Connection Timeout
Comparing two collections for equality irrespective of the order of items in them
.Net
Collections
Comparison
Equality
How do I get the first element from an IEnumerable<T> in .net?
C#
.Net
What is the Invariant Culture?
.Net
Globalization
Remove characters from C# string
C#
.Net
Why is the console window closing immediately once displayed my output?
C#
.Net
Console Application
Msdn
Connection string using Windows Authentication
.Net
asp.net Mvc
Connection String
Windows Authentication
WebAPI Multiple Put/Post parameters
.Net
asp.net Web-Api
How to check whether an object has certain method/property?
C#
.Net
Methods
Reflection
Properties
How to write Unicode characters to the console?
C#
.Net
vb.net
Console Application
Close and Dispose - which to call?
.Net
Why XML-Serializable class need a parameterless constructor
C#
.Net
Xml Serialization
BackgroundWorker vs background Thread
.Net
Winforms
Multithreading
Backgroundworker
Putting HTML inside Html.ActionLink(), plus No Link Text?
C#
.Net
asp.net Mvc
Actionlink
Remove characters after specific character in string, then remove substring?
C#
.Net
String
How to get the type of T from a member of a generic class or method
C#
.Net
Generics
In C#, what is the difference between public, private, protected, and having no access modifier?
C#
.Net
asp.net
Access Modifiers
Difference between Char.IsDigit() and Char.IsNumber() in C#
C#
.Net
Unicode
Collection<T> versus List<T> what should you use on your interfaces?
C#
.Net
Collections
Code Analysis
What is the point of Lookup<TKey, TElement>?
C#
.Net
Linq
Lookup
What's the difference between "groups" and "captures" in .NET regular expressions?
C#
.Net
Regex
convert double to int
C#
.Net
Casting
Type Conversion
FirstOrDefault: Default value other than null
.Net
Linq
How to find and replace text in a file
C#
.Net
Io
Streamreader
File Handling
Could not load file or assembly 'System.Net.Http.Formatting' or one of its dependencies. The system cannot find the path specified
C#
asp.net
.Net
asp.net Mvc-4
Pros and cons of AppSettings vs applicationSettings (.NET app.config / Web.config)
.Net
Web Config
App Config
How to loop through all the properties of a class?
.Net
vb.net
Class
Reflection
Properties
Value of type 'T' cannot be converted to
C#
.Net
Generics
Casting
Why should I use var instead of a type?
C#
.Net
Coding Style
Resharper
Var
What are the pros and cons of performing calculations in sql vs. in your application
Java
.Net
Sql
Performance
Postgresql
Best way to randomize an array with .NET
C#
.Net
Algorithm
Sorting
Random
LINQ - Left Join, Group By, and Count
C#
.Net
Linq
Linq to-Sql
Using Case/Switch and GetType to determine the object
C#
.Net
Reflection
Switch Statement
Case
Simplest way to do a fire and forget method in C#?
C#
.Net
Nonblocking
Is Using .NET 4.0 Tuples in my C# Code a Poor Design Decision?
C#
.Net
Tuples
Application Design
Kill child process when parent process is killed
C#
.Net
Process
Mixed mode assembly is built against version ‘v2.0.50727′ of the runtime
.Net
Visual Studio-2010
.Net 4.0
ado.net
Crystal Reports
Check if list contains element that contains a string and get that element
C#
.Net
Linq
List
Contains
Is there a C# case insensitive equals operator?
C#
.Net
String
Operators
Case Insensitive
Programmatically get the version number of a DLL
C#
.Net
Why is HashSet<Point> so much slower than HashSet<string>?
C#
.Net
Performance
Collections
Hashset
What does InitializeComponent() do, and how does it work in WPF?
C#
.Net
Wpf
Attached Properties
What is managed or unmanaged code in programming?
C#
.Net
Unmanaged
Definition
Managed
What can you do in MSIL that you cannot do in C# or VB.NET?
C#
.Net
Clr
Cil
How to get folder path for ClickOnce application
.Net
Windows
Clickonce
What is Microsoft.csharp.dll in .NET 4.0
.Net
Visual Studio-2010
Visual Studio
C# 4.0
.Net 4.0
How to insert newline in string literal?
C#
.Net
Line Breaks
How do I display a decimal value to 2 decimal places?
C#
.Net
Format
Decimal
In C#, should I use string.Empty or String.Empty or "" to intitialize a string?
C#
.Net
String
Initialization
How can I convert String to Int?
C#
.Net
String
Int
Type Conversion
Regarding usage of Task.Start() , Task.Run() and Task.Factory.StartNew()
C#
.Net
Async Await
Task Parallel-Library
Nuget re-targeting after upgrading from .Net Framework 4.5 to 4.6.1
C#
asp.net
.Net
Visual Studio-2013
Nuget
Should I take ILogger, ILogger<T>, ILoggerFactory or ILoggerProvider for a library?
C#
.Net
Logging
.Net Core
.Net Standard
How to find foreign key dependencies in SQL Server?
.Net
Sql Server
Foreign Keys
How to create a .NET DateTime from ISO 8601 format
C#
.Net
Datetime
Iso8601
Datetime Parsing
How to decode JWT Token?
C#
.Net
Jwt
What is the difference between Directory.EnumerateFiles vs Directory.GetFiles?
C#
.Net
Directory
Io
why does DateTime.ToString("dd/MM/yyyy") give me dd-MM-yyyy?
C#
.Net
Datetime
How to create an installer for a .net Windows Service using Visual Studio
C#
.Net
Visual Studio
Windows Services
Windows Installer
How exactly does the "Specific Version" property of an assembly reference work in Visual Studio?
.Net
Visual Studio
Install a .NET windows service without InstallUtil.exe
C#
.Net
Deployment
Windows Services
Installutil
Creating a blocking Queue<T> in .NET?
C#
.Net
Multithreading
Collections
Queue
My images are blurry! Why isn't WPF's SnapsToDevicePixels working?
.Net
Wpf
Image
Xaml
When NOT to use yield (return)
C#
.Net
Yield
Yield Return
How to detect modifier key states in WPF?
C#
.Net
Wpf
Keyboard
How can I generate UUID in C#
C#
.Net
Visual Studio-2008
Com
Uuid
How do I run a Python script from C#?
C#
Python
.Net
Ironpython
python.net
Accessing a Dictionary.Keys Key through a numeric index
C#
.Net
Dictionary
What are the best practices for using Assembly Attributes?
.Net
Assemblies
Attributes
Assemblyinfo
Choosing between MEF and MAF (System.AddIn)
.Net
Add In
Mef
system.addin
Maf
Sometimes adding a WCF Service Reference generates an empty reference.cs
C#
.Net
Wcf
Determine .NET Framework version for dll
.Net
.Net Framework-Version
Why is WinRT unmanaged?
C#
.Net
Windows 8
Windows Runtime
Why should I prefer single 'await Task.WhenAll' over multiple awaits?
C#
.Net
Parallel Processing
Task Parallel-Library
Async Await
.NET obfuscation tools/strategy
.Net
Security
Obfuscation
How to apply multiple styles in WPF
.Net
Wpf
Styles
What is a .snk for?
.Net
Strongname
Snk
What is the App_Data folder used for in Visual Studio?
asp.net
.Net
Visual Studio
Security
App Data
Testing if object is of generic type in C#
C#
.Net
Generics
Reflection
Types
What does MissingManifestResourceException mean and how to fix it?
C#
.Net
Resources
Manifest
Culture
Visual Studio: Is there a way to collapse all items of Solution Explorer?
.Net
Visual Studio-2008
Why is Attributes.IsDefined() missing overloads?
C#
.Net
Reflection
Order of items in classes: Fields, Properties, Constructors, Methods
C#
.Net
Coding Style
Code Cleanup
Code Structure
Encrypt and decrypt a string in C#?
C#
.Net
Encryption
Mono
Cryptography
How to get the current date without the time?
C#
.Net
Implementing IDisposable correctly
C#
.Net
Memory Management
Memory Leaks
Garbage Collection
What's the difference between System.ValueTuple and System.Tuple?
C#
.Net
Tuples
C# 7.0
Panel.Dock Fill ignoring other Panel.Dock setting
C#
.Net
Winforms
Visual Studio-2005
How to spawn a process and capture its STDOUT in .NET?
C#
.Net
Process
Spawning
Can a unit test project load the target application's app.config file?
C#
.Net
Unit Testing
App Config
Casting interfaces for deserialization in JSON.NET
C#
.Net
Json
json.net
Do asynchronous operations in ASP.NET MVC use a thread from ThreadPool on .NET 4
C#
.Net
asp.net Mvc
asp.net Mvc-3
Asynchronous
Check if a value is in an array (C#)
C#
.Net
Arrays
String
Getter and Setter declaration in .NET
C#
.Net
Visual Studio-2010
.NET Configuration (app.config/web.config/settings.settings)
C#
.Net
asp.net
vb.net
Configuration
Using Moq to determine if a method is called
C#
.Net
Unit Testing
Mocking
Moq
How to find the most recent file in a directory using .NET, and without looping?
C#
.Net
File
Loops
Last Modified
Execute unit tests serially (rather than in parallel)
C#
.Net
Unit Testing
xunit.net
Convert String to SecureString
C#
.Net
Security
Securestring
How do I abort/cancel TPL Tasks?
C#
.Net
Multithreading
Task
Abort
What is the difference between IEqualityComparer<T> and IEquatable<T>?
C#
.Net
Equals
Iequalitycomparer
Iequatable
Linq: GroupBy, Sum and Count
C#
.Net
Linq
What does SynchronizationContext do?
C#
.Net
Multithreading
How to write WinForms code that auto-scales to system font and dpi settings?
C#
.Net
Winforms
Fonts
Dpi
Is 161803398 A 'Special' Number? Inside of Math.Random()
C#
.Net
Algorithm
Random
Making a WinForms TextBox behave like your browser's address bar
.Net
Winforms
User Interface
Textbox
What is the best practice for "Copy Local" and with project references?
C#
.Net
Visual Studio
Msbuild
How do I invert BooleanToVisibilityConverter?
.Net
Wpf
Binding
Visibility
How to quickly check if folder is empty (.NET)?
.Net
Io
Directory
Where are the Properties.Settings.Default stored?
C#
.Net
Settings
How to get the index of an element in an IEnumerable?
C#
.Net
Linq
Ienumerable
Indexof
How to implement a property in an interface
C#
.Net
IEnumerable<char> to string
C#
.Net
String
Ienumerable
How to properly make a http web GET request
C#
.Net
Httpwebrequest
How to Compare Flags in C#?
C#
.Net
Enums
Attributes
Flags
How to use HttpWebRequest (.NET) asynchronously?
C#
.Net
Asynchronous
Httprequest
NAnt or MSBuild, which one to choose and when?
.Net
Msbuild
Automation
Nant
How to compare DateTime in C#?
C#
.Net
Datetime
How to convert View Model into JSON object in ASP.NET MVC?
.Net
Javascript
asp.net Mvc
Json
Check if Key Exists in NameValueCollection
C#
.Net
Namevaluecollection
Best way to parse command line arguments in C#?
C#
.Net
Command Line-Arguments
Using LINQ to remove elements from a List<T>
C#
.Net
Linq
List
How do I convert an enum to a list in C#?
C#
.Net
Enums
Implementing INotifyPropertyChanged - does a better way exist?
C#
.Net
Winforms
Inotifypropertychanged
What is the correct way to create a single-instance WPF application?
C#
.Net
Wpf
Mutex
Run Command Prompt Commands
C#
.Net
Command Line
Command
Prompt
MetadataException: Unable to load the specified metadata resource
C#
.Net
Entity Framework
ado.net
How do you keep user.config settings across different assembly versions in .net?
.Net
Settings
Assemblyversions
Why "decimal" is not a valid attribute parameter type?
C#
.Net
Attributes
How does the following LINQ statement work?
C#
.Net
Linq
Elevating process privilege programmatically?
C#
.Net
Windows
Windows Services
Process Elevation
How do I pronounce "=>" as used in lambda expressions in .Net
C#
.Net
Lambda
Conventions
Get the previous month's first and last day dates in c#
C#
.Net
Datetime
Date
When do we need to set ProcessStartInfo.UseShellExecute to True?
C#
.Net
Winapi
Is floating-point math consistent in C#? Can it be?
C#
.Net
Floating Point
Precision
Ieee 754
Multiple file-extensions searchPattern for System.IO.Directory.GetFiles
C#
.Net
system.io.directory
How to add extension methods to Enums
C#
.Net
Enums
How does String.Equals(a,b) not produce a StackOverflowException?
C#
.Net
How should I cast in VB.NET?
.Net
vb.net
Casting
How do you effectively model inheritance in a database?
.Net
Sql Server
Oop
Inheritance
Database Design
Calling a function from a string in C#
C#
.Net
Php
String
Function Calls
Enum type constraints in C#
C#
.Net
Enums
How do I create a file AND any folders, if the folders don't exist?
C#
.Net
File Access
Best practices/guidance for maintaining assembly version numbers
.Net
Version Control
Versioning
.Net Assembly
Assemblyversions
Why covariance and contravariance do not support value type
C#
.Net
C# 4.0
Covariance
Contravariance
Allowing Untrusted SSL Certificates with HttpClient
C#
.Net
Windows 8
Windows Runtime
C# 3.0 auto-properties — useful or not?
C#
.Net
Automatic Properties
Compare two objects' properties to find differences?
C#
.Net
Good or bad practice for Dialogs in wpf with MVVM?
C#
.Net
Wpf
Mvvm
Modal Dialog
Equivalent to 'app.config' for a library (DLL)
C#
.Net
Dll
Settings
App Config
NuGet for solutions with multiple projects
.Net
Nuget
Purpose of Activator.CreateInstance with example?
C#
.Net
Reflection
EntityType has no key defined error
C#
.Net
Entity Framework
DateTimePicker: pick both date and time
C#
.Net
Winforms
Datetimepicker
Maximum number of threads in a .NET app?
C#
.Net
Multithreading
How to open a web page from my application?
C#
.Net
Wpf
How to get the list of properties of a class?
C#
.Net
Reflection
Properties
Array versus List<T>: When to use which?
.Net
Arrays
List
WPF Application that only has a tray icon
C#
.Net
Wpf
Xaml
No generic implementation of OrderedDictionary?
C#
.Net
Generics
.Net 4.0
Ordereddictionary
Adding List<t>.add() another list
C#
.Net
Linq
Remove the last three characters from a string
C#
.Net
Do sealed classes really offer performance Benefits?
.Net
Optimization
Frameworks
Performance
View/edit ID3 data for MP3 files
C#
.Net
Mp3
Id3
What strategies and tools are useful for finding memory leaks in .NET?
C#
.Net
Memory Management
Memory Leaks
Should a return statement be inside or outside a lock?
C#
.Net
Multithreading
Mutex
How to take all but the last element in a sequence using LINQ?
C#
.Net
Linq
Where is the "Create Unit Tests" selection?
.Net
Unit Testing
Visual Studio-2012
Visual Studio-2013
Mstest
Static and Sealed class differences
C#
.Net
Oop
Static
Sealed
If (false == true) executes block when throwing exception is inside
C#
.Net
Visual Studio
.Net Core
When to use Windows Workflow Foundation?
.Net
Workflow
Workflow Foundation
Show a Form without stealing focus?
C#
.Net
Winforms
How to programmatically click a button in WPF?
C#
.Net
Wpf
Button
What .NET collection provides the fastest search
C#
.Net
Search
Collections
Difference between Select and ConvertAll in C#
C#
.Net
List
Change C++/CLI project to another framework than 4.0 with vs2010
.Net
Visual Studio-2010
Visual Studio
.Net 4.0
C++ Cli
Draw horizontal divider in winforms
.Net
Winforms
How to handle click event in Button Column in Datagridview?
C#
.Net
Winforms
Datagridview
How do I jump out of a foreach loop in C#?
C#
.Net
Foreach
NUnit vs. xUnit
C#
.Net
Nunit
Xunit
Ensure that HttpConfiguration.EnsureInitialized()
C#
.Net
asp.net Mvc-Routing
How to shut down the computer from C#
C#
.Net
Windows
Shutdown
How to document thrown exceptions in c#/.net
C#
.Net
Documentation
Intellisense
Serialize Class containing Dictionary member
C#
.Net
Serialization
Dictionary
Parser Error Message: Could not load type 'TestMvcApplication.MvcApplication'
.Net
asp.net Mvc
How can I split and trim a string into parts all on one line?
C#
.Net
Split
Trim
How could I ignore bin and obj folders from git repository?
.Net
Git
Gitignore
A connection was successfully established with the server, but then an error occurred during the pre-login handshake
.Net
Sql Server
Sql Server-2008
ado.net
Database Connection
What's the role of GetHashCode in the IEqualityComparer<T> in .NET?
C#
.Net
Gethashcode
Iequalitycomparer
Convert any object to a byte[]
C#
.Net
Object
Byte
What's the @ in front of a string in C#?
C#
.Net
String
Embedding DLLs in a compiled executable
C#
.Net
Dll
Merge
Linker
C# Equivalent of SQL Server DataTypes
C#
.Net
Sql Server
Why is infinity printed as "8" in the Windows 10 console?
C#
.Net
Windows
Why is it impossible to override a getter-only property and add a setter?
C#
.Net
Properties
Getter Setter
Does C# have an equivalent to JavaScript's encodeURIComponent()?
C#
Javascript
.Net
Windows
Encoding
Most efficient way to check for DBNull and then assign to a variable?
.Net
Dbnull
Can extension methods be applied to interfaces?
C#
.Net
Interface
Extension Methods
Why C# fails to compare two object types with each other but VB doesn't?
C#
.Net
vb.net
Comparison
Should the folders in a solution match the namespace?
C#
.Net
Namespaces
Add new item in existing array in c#.net
C#
.Net
How to make modal dialog in WPF?
.Net
Wpf
Dialog
Modal Dialog
Is there an IDictionary implementation that, on missing key, returns the default value instead of throwing?
C#
.Net
Hash
Dictionary
Query an XDocument for elements by name at any depth
C#
.Net
Xml
Linq
Linq to-Xml
Omitting all xsi and xsd namespaces when serializing an object in .NET?
C#
.Net
Xml Serialization
How to download a Nuget package without nuget.exe or Visual Studio extension?
C#
.Net
Visual Studio
Nuget
Best way to get InnerXml of an XElement?
.Net
Xml
Xelement
Innerxml
Can attributes be added dynamically in C#?
C#
.Net
Attributes
Thread vs ThreadPool
.Net
Multithreading
Architecture
Threadpool
Remove element of a regular array
C#
.Net
Arrays
Apply function to all elements of collection through LINQ
C#
.Net
Linq
How to write a scalable TCP/IP based server
C#
.Net
Networking
Tcp
Scalability
How to access property of anonymous type in C#?
C#
.Net
Object
Properties
Anonymous Types
RegEx: Smallest possible match or nongreedy match
.Net
Regex
Regex Greedy
Non Greedy
How to set conditional breakpoints in Visual Studio?
C#
.Net
Visual Studio
Breakpoints
How to elegantly deal with timezones
C#
.Net
asp.net Mvc
asp.net Mvc-3
Timezone
Logging request/response messages when using HttpClient
C#
.Net
asp.net Mvc-4
asp.net Web-Api
What is the default value for Guid?
C#
.Net
Guid
Default Value
Creating a constant Dictionary in C#
C#
.Net
Collections
Dictionary
Constants
BestPractice - Transform first character of a string into lower case
C#
.Net
String
Parallel.ForEach() vs. foreach(IEnumerable<T>.AsParallel())
C#
.Net
Multithreading
Parallel Processing
parallel.foreach
Overriding == operator. How to compare to null?
C#
.Net
Null
Overloading
Operator Keyword
How do I keep a label centered in WinForms?
C#
.Net
Winforms
Centering
Should an Enum start with a 0 or a 1?
C#
.Net
Enums
How do I implement IEnumerable<T>
C#
.Net
Generics
What are the correct version numbers for C#?
C#
.Net
Visual Studio
.Net Core
.Net Framework-Version
How do I get the current username in .NET using C#?
C#
.Net
Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib
.Net
Auto column width in EPPlus
C#
.Net
vb.net
Epplus
What exceptions does Newtonsoft.Json.DeserializeObject throw?
.Net
Exception
Exception Handling
json.net
How do you do Impersonation in .NET?
C#
.Net
Impersonation
Centering controls within a form in .NET (Winforms)?
C#
.Net
Winforms
Center Align
Dependency graph of Visual Studio projects
.Net
Visual Studio
Migration
Graph
Dependencies
Calculate date from week number
C#
.Net
Week Number
Initializing IEnumerable<string> In C#
C#
.Net
Difference Between Invoke and DynamicInvoke
C#
.Net
Delegates
Invoke
Dynamic Invoke
Edit changeset comment after updates have been checked in to TFS
.Net
Visual Studio
Visual Studio-2012
Tfs
Resharper Ctrl-T mapping lost
C#
.Net
Visual Studio
Keyboard
Transactions in .net
C#
.Net
Transactions
How to create a simple proxy in C#?
C#
.Net
.Net 2.0
Proxy
Creating a temporary directory in Windows?
C#
.Net
Windows
Temporary Directory
How to initialize a List<T> to a given size (as opposed to capacity)?
C#
.Net
Generics
List
Initialization
Xml serialization - Hide null values
C#
.Net
Xml Serialization
Visual Studio 2013 doesn't discover unit tests
C#
.Net
Visual Studio
Unit Testing
Visual Studio-2013
Why is the length of this string longer than the number of characters in it?
C#
.Net
String
Unicode
Unicode String
How can I clear event subscriptions in C#?
C#
.Net
Events
Delegates
How slow are .NET exceptions?
C#
.Net
Performance
Exception
How do I execute code AFTER a form has loaded?
C#
.Net
Winforms
Events
Java's Virtual Machine and CLR
Java
.Net
Bytecode
Cil
Vm Implementation
Display lines number in Stack Trace for .NET assembly in Release mode
C#
.Net
Visual Studio
Stack Trace
Line Numbers
Difference between RegisterStartupScript and RegisterClientScriptBlock?
C#
Javascript
asp.net
.Net
LINQ to SQL Left Outer Join
.Net
Database
Linq
Linq to-Sql
Which cryptographic hash function should I choose?
C#
.Net
Hash
Cryptography
Cryptographic Hash-Function
What exactly is an Assembly in C# or .NET?
C#
.Net
Assemblies
Is int[] a reference type or a value type?
C#
.Net
How to solve "Could not establish trust relationship for the SSL/TLS secure channel with authority"
.Net
Wcf
Iis
Certificate
Could not load type from assembly error
.Net
Capturing console output from a .NET application (C#)
C#
.Net
Debugging
Console
XmlSerializer: remove unnecessary xsi and xsd namespaces
.Net
Xml
Xml Serialization
Convert string to nullable type (int, double, etc...)
C#
.Net
Generics
Extension Methods
Type Conversion
C# Interfaces. Implicit implementation versus Explicit implementation
C#
.Net
Interface
Which method performs better: .Any() vs .Count() > 0?
.Net
Linq
Performance
.Net 3.5
Extension Methods
Routing with Multiple Parameters using ASP.NET MVC
C#
.Net
asp.net Mvc
Routing
How do you simulate Mouse Click in C#?
C#
.Net
Winforms
Are nullable types reference types?
C#
.Net
Types
Nullable
Difference between "managed" and "unmanaged"
.Net
Windows
Unmanaged
Managed
Unable to read data from the transport connection : An existing connection was forcibly closed by the remote host
C#
.Net
Ioexception
Difference between System.DateTime.Now and System.DateTime.Today
C#
.Net
Date
Datetime
Does .NET provide an easy way convert bytes to KB, MB, GB, etc.?
C#
.Net
Byte
Megabyte
How does .NET framework allocate memory for OutOfMemoryException?
C#
.Net
Out of-Memory
Return XML from a controller's action in as an ActionResult?
asp.net
.Net
Xml
asp.net Mvc
How can a windows service programmatically restart itself?
.Net
Windows
Windows Services
Windows Server-2003
How to get IntPtr from byte[] in C#
C#
.Net
Linq: What is the difference between Select and Where
.Net
Linq
Select
Where
When should I use the HashSet<T> type?
C#
.Net
Data Structures
Hashset
Distinct not working with LINQ to Objects
C#
.Net
Linq
Iequatable
Iequalitycomparer
How can I view MSIL / CIL generated by C# compiler? Why is it called assembly?
C#
.Net
Assemblies
How to compare types
C#
.Net
Why doesn't Dictionary have AddRange?
C#
.Net
Dictionary
Why doesn't C# support the return of references?
C#
.Net
Reference
Return Type
Group by with multiple columns using lambda
C#
.Net
Entity Framework
Lambda
How to navigate a few folders up?
C#
.Net
Console Application
Why does Environment.Exit() not terminate the program any more?
C#
.Net
Windows
Should I avoid 'async void' event handlers?
C#
.Net
Events
Asynchronous
Async Await
What is AppDomain?
C#
.Net
Appdomain
Inline list initialization in VB.NET
.Net
vb.net
How to play a sound in C#, .NET
C#
.Net
Audio
Best way to compare two complex objects
C#
.Net
Strange issue with System.Net.Http 4.2.0.0 not found
.Net
Visual Studio-2017
Dotnet Httpclient
Service Fabric-Stateless
How to find if a native DLL file is compiled as x64 or x86?
C#
.Net
Winapi
64 Bit
X86 64
Case insensitive string compare in LINQ-to-SQL
.Net
vb.net
Linq
.NET - Dictionary locking vs. ConcurrentDictionary
.Net
Concurrency
Dictionary
Concurrentdictionary
Delete files older than 3 months old in a directory using .NET
C#
.Net
File
Directory
How do you do a deep copy of an object in .NET?
C#
.Net
Serialization
Clone
C# difference between == and Equals()
C#
.Net
Equals
How do I make a textbox that only accepts numbers?
C#
.Net
Winforms
Textbox
Func delegate with no return type
C#
.Net
Will the Garbage Collector call IDisposable.Dispose for me?
.Net
Dispose
Idisposable
.NET: Which Exception to Throw When a Required Configuration Setting is Missing?
.Net
Exception
Configuration
calculating the difference in months between two dates
C#
.Net
Datetime
Timespan
How to find the .NET framework version of a Visual Studio project?
.Net
Version
TargetedPatchingOptOut: "Performance critical to inline across NGen image boundaries"?
C#
.Net
Compiler Construction
Ngen
How to flatten nested objects with linq expression
C#
.Net
vb.net
Linq
Powershell v3 Invoke-WebRequest HTTPS error
.Net
Rest
Powershell
Https
Does the use of the "Async" suffix in a method name depend on whether the 'async' modifier is used?
C#
.Net
Async Await
Naming Conventions
Naming
Can you configure log4net in code instead of using a config file?
C#
.Net
Logging
Log4net
ConfigureAwait(false) relevant in ASP.NET Core?
.Net
asp.net Core
Async Await
What is a dependency property?
.Net
Workflow Foundation
Dependency Properties
How to disable postback on an asp Button (System.Web.UI.WebControls.Button)
.Net
asp.net
Javascript
Ajax
What is the fastest way to create a checksum for large files in C#
C#
.Net
Large Files
Checksum
How to add folder to assembly search path at runtime in .NET?
.Net
Search
Assemblies
Path
Array.Copy vs Buffer.BlockCopy
.Net
Arrays
Difference between LoadFile and LoadFrom with .NET Assemblies?
.Net
Assemblies
system.reflection
Assembly Loading
SqlDataAdapter vs SqlDataReader
C#
.Net
Why is System.Web.Mvc not listed in Add References?
.Net
Visual Studio
Assembly References
How to empty a list in C#?
C#
.Net
How to fix the datetime2 out-of-range conversion error using DbContext and SetInitializer?
C#
.Net
Entity Framework
Ef Code-First
Dbcontext
Fluent Validation vs. Data Annotations
.Net
asp.net Mvc
Data Annotations
Fluentvalidation
Why doesn't await on Task.WhenAll throw an AggregateException?
.Net
Exception
Asynchronous
Tap
The reference assemblies for framework ".NETFramework,Version=v4.6.2" were not found
.Net
Visual Studio-2017
How do you prevent IDisposable from spreading to all your classes?
C#
.Net
Garbage Collection
Dispose
Idisposable
"Order by Col1, Col2" using entity framework
C#
.Net
Linq
Entity Framework
What guarantees are there on the run-time complexity (Big-O) of LINQ methods?
C#
.Net
Linq
Algorithm
Complexity Theory
How to loop through all the files in a directory in c # .net?
C#
.Net
Difference between InvariantCulture and Ordinal string comparison
C#
.Net
String Comparison
Ordinal
How do I use WPF bindings with RelativeSource?
.Net
Wpf
Xaml
Data Binding
Relativesource
In WPF, what are the differences between the x:Name and Name attributes?
.Net
Wpf
Xaml
Name Attribute
Calculate the execution time of a method
C#
.Net
Timer
Io
Stopwatch
NUnit's Assert.Equals throws exception "Assert.Equals should not be used for assertions"
.Net
Nunit
How to generate service reference with only physical wsdl file
.Net
Web Services
Service Reference
xUnit.net: Global setup + teardown?
C#
.Net
xunit.net
Nuget connection attempt failed "Unable to load the service index for source"
.Net
Visual Studio
Nuget
GetHashCode Guidelines in C#
C#
.Net
Hashcode
How to extract an assembly from the GAC?
.Net
Assemblies
converting a .net Func<T> to a .net Expression<Func<T>>
C#
.Net
Lambda
Expression
Func
Why don't structs support inheritance?
.Net
Inheritance
Struct
How to retrieve the LoaderException property?
C#
.Net
Wcf
Prevent multiple instances of a given app in .NET?
C#
.Net
No output to console from a WPF application?
C#
.Net
Wpf
Console
Is it possible to set private property via reflection?
.Net
Reflection
Properties
Private
WebClient vs. HttpWebRequest/HttpWebResponse
.Net
Httpwebrequest
Webclient
Httpwebresponse
Generics in C#, using type of a variable as parameter
C#
.Net
Generics
Types
What exactly is an "open generic type" in .NET?
C#
.Net
Generics
Open Generics
Invalid URI: The format of the URI could not be determined
C#
.Net
Winforms
Uri
Service Reference Error: Failed to generate code for the service reference
C#
.Net
Visual Studio-2010
Web Services
Service Reference
How do I verify a method was called exactly once with Moq?
.Net
Mocking
Moq
How to generate string of a certain length to insert into a file to meet a file size criteria?
C#
String
.Net
Operations
How does Task<int> become an int?
C#
.Net
Asynchronous
.Net 4.5
C# 5.0
Entity Framework - Code First - Can't Store List<String>
C#
.Net
Entity Framework
NHibernate.MappingException: No persister for: XYZ
C#
.Net
Nhibernate
Random Gaussian Variables
C#
.Net
Difference between web reference and service reference?
.Net
Wcf
Asmx
Enterprise Library Unity vs Other IoC Containers
C#
.Net
Inversion of-Control
Unity Container
Enterprise Library
Login failed for user 'DOMAIN\MACHINENAME$'
.Net
Sql Server
Sql Server-2005
Web Applications
Iis 6
Create a completed Task<T>
C#
.Net
Task Parallel-Library
Making your .NET language step correctly in the debugger
.Net
Visual Studio
Visual Studio-2010
Debugging
Clr
Append TimeStamp to a File Name
C#
.Net
File
Datetime
File Io
What are the true benefits of ExpandoObject?
C#
.Net
.Net 4.0
C# 4.0
How to know the size of the string in bytes?
C#
.Net
String
Size
Byte
Measuring code execution time
C#
.Net
vb.net
Datetime
Timespan
Base constructor in C# - Which gets called first?
C#
.Net
asp.net
Anonymous method in Invoke call
C#
.Net
Compiler Errors
Anonymous Methods
ReadOnlyCollection or IEnumerable for exposing member collections?
C#
.Net
Collections
Ienumerable
Readonly Collection
Binding an enum to a WinForms combo box, and then setting it
C#
.Net
Winforms
Combobox
Enums
How can I ignore a property when serializing using the DataContractSerializer?
C#
.Net
Wcf
Serialization
Change default app.config at runtime
C#
.Net
App Config
What is AssemblyInfo.cs used for?
.Net
What are .NET Platform Extensions on docs.microsoft.com?
.Net
.Net Core
Nuget
Nuget Package
.Net Standard
How to detect the currently pressed key?
C#
.Net
Winforms
Keyboard
WPF - How to force a Command to re-evaluate 'CanExecute' via its CommandBindings
.Net
Wpf
Command
Commandbinding
How can I sort generic list DESC and ASC?
C#
.Net
Linq
Will ConfigurationManager.AppSettings["blah"] throw an exception if "blah" doesn't exist?
.Net
Configuration
How to get ALL child controls of a Windows Forms form of a specific type (Button/Textbox)?
C#
.Net
vb.net
Winforms
Controls
Entity Framework 4 - AddObject vs Attach
C#
.Net
Entity Framework-4
Crud
Cast List<T> to List<Interface>
C#
.Net
Interface
Casting
Performance of Find() vs. FirstOrDefault()
C#
.Net
Performance
Linq
Locking pattern for proper use of .NET MemoryCache
C#
.Net
Multithreading
Memorycache
How do you bind an Enum to a DropDownList control in ASP.NET?
C#
.Net
asp.net
Running MSBuild fails to read SDKToolsPath
.Net
Msbuild
Entity Framework 4 Single() vs First() vs FirstOrDefault()
.Net
Linq
Entity Framework
Entity Framework-4
Linq to-Entities
What does a lock statement do under the hood?
C#
.Net
Synchronization
Locking
Thread Safety
Best way to get application folder path
C#
.Net
How are strings passed in .NET?
.Net
String
Function
Parameter Passing
Why is it Valid to Concatenate Null Strings but not to Call "null.ToString()"?
C#
.Net
String
Null
Why are flag enums usually defined with hexadecimal values
C#
.Net
Enums
Enum Flags
Can I generate script of a migration with EF code first and .net core
.Net
Entity Framework
asp.net Core
asp.net Core-Mvc
Entity Framework-Core
How can I disable horizontal scrolling in a WPF ListBox?
C#
.Net
Wpf
Visual Studio
Listbox
Static Indexers?
C#
.Net
Static
Indexer
Static Indexers
In C#, how to check if a TCP port is available?
C#
.Net
Tcp
Tcpclient
How can I make my own event in C#?
C#
.Net
Events
HintPath vs ReferencePath in Visual Studio
.Net
Visual Studio
Dependencies
Loop through all the resources in a .resx file
C#
.Net
Embedded Resource
How to split csv whose columns may contain ,
C#
.Net
Csv
Error CS1705: "which has a higher version than referenced assembly"
.Net
Web Deployment
What is the difference between Culture and UICulture?
.Net
Culture
Uiculture
How to add a Timeout to Console.ReadLine()?
C#
.Net
Console
Timeout
Io
Convert Pixels to Points
C#
.Net
Pixel
Point
Sequence contains more than one element
C#
.Net
asp.net
Linq
Could not load file or assembly 'System.Data.SQLite'
.Net
Sqlite
Elmah
C# - how to determine whether a Type is a number
C#
.Net
Types
What is meant by "managed" vs "unmanaged" resources in .NET?
C#
.Net
Unmanaged
Managed
Resize image proportionally with MaxHeight and MaxWidth constraints
C#
.Net
Winforms
Image Processing
Gdi+
Why can I initialize a List like an array in C#?
C#
.Net
List
Initialization
powershell - extract file name and extension
.Net
Powershell
Powershell 2.0
How to make Entity Framework Data Context Readonly
.Net
Entity Framework
Entity Framework-4
Datacontext
Readonly
Should I worry about "This async method lacks 'await' operators and will run synchronously" warning
C#
.Net
Asynchronous
Async Await
Task
Visual Studio 2017 - Could not load file or assembly 'System.Runtime, Version=4.1.0.0' or one of its dependencies
.Net
Visual Studio-2017
.Net Standard-1.5
Why is UnhandledExceptionEventArgs.ExceptionObject an object and not an Exception?
.Net
Exception
Exception Handling
Unhandled Exception
System.Timers.Timer vs System.Threading.Timer
.Net
Timer
Comparing two byte arrays in .NET
C#
.Net
Arrays
Performance
J#
How to convert char to int?
C#
.Net
Lists: Count vs Count()
C#
.Net
List
Linq
Count
ApartmentState for dummies
.Net
Multithreading
Prompt Dialog in Windows Forms
C#
.Net
Winforms
Dialog
Prompt
LINQ to Entities does not recognize the method
.Net
Linq
Entity Framework
Linq to-Entities
Specification Pattern
ExecuteReader requires an open and available Connection. The connection's current state is Connecting
C#
.Net
Sql Server
ado.net
Database Connection
What and When to use Tuple?
C#
.Net
C# 4.0
.Net 4.0
Tuples
.net Core 2.0 - Package was restored using .NetFramework 4.6.1 instead of target framework .netCore 2.0. The package may not be fully compatible
C#
.Net
Tfs
asp.net Core
Nuget
Custom Compiler Warnings
C#
.Net
vb.net
Attributes
Compiler Warnings
How to embed a text file in a .NET assembly?
C#
.Net
Embedded Resource
Disposing WPF User Controls
C#
.Net
Wpf
User Controls
Dispose
Using the field of an object as a generic Dictionary key
.Net
Generics
Dictionary
Date vs DateTime
C#
.Net
asp.net
Returning a value from thread?
C#
.Net
Multithreading
Get individual query parameters from Uri
C#
.Net
Uri
C# '@' before a String
C#
.Net
Selecting a row in DataGridView programmatically
C#
.Net
Winforms
Datagridview
The source was not found, but some or all event logs could not be searched
C#
.Net
Windows 7
Event Log
Securityexception
Returning 'IList' vs 'ICollection' vs 'Collection'
C#
.Net
Generics
Collections
Usage of EnsureSuccessStatusCode and handling of HttpRequestException it throws
.Net
Httprequest
system.net
How to catch SQLServer timeout exceptions
C#
.Net
Sql Server
Error Handling
Wrap a delegate in an IEqualityComparer
.Net
Linq
Delegates
Linq to Objects: does GroupBy preserve order of elements?
.Net
Linq
Group By
where is gacutil.exe?
.Net
Gacutil
Is it considered acceptable to not call Dispose() on a TPL Task object?
C#
.Net
Multithreading
Dispose
Task Parallel-Library
Conditionally use 32/64 bit reference when building in Visual Studio
.Net
Visual Studio
64 Bit
32bit 64bit
ASP.NET MVC: Is Controller created for every request?
.Net
asp.net Mvc-3
Entity Framework
Controller
Httprequest
Undo changes in entity framework entities
.Net
Entity Framework
Rollback
Why does Enumerable.All return true for an empty sequence?
C#
.Net
Linq
Enumerable
How can I implement static methods on an interface?
C#
.Net
Interface
printing all contents of array in C#
C#
.Net
Arrays
Linq
Where can I find a NuGet package for upgrading to System.Web.Http v5.0.0.0?
C#
.Net
asp.net Mvc-4
Nuget
asp.net Web-Api2
How do I get the directory from a file's full path?
C#
.Net
File
File Io
Directory
Update all objects in a collection using LINQ
C#
.Net
Linq
Foreach
Copy the entire contents of a directory in C#
C#
.Net
Directory
Copy
Update .NET web service to use TLS 1.2
C#
.Net
tls1.2
Checking if a list is empty with LINQ
C#
.Net
Linq
List
How to wait for a BackgroundWorker to cancel?
C#
.Net
Multithreading
Backgroundworker
Quickest way to convert a base 10 number to any base in .NET?
C#
.Net
Int
Base
Number Systems
C# How can I check if a URL exists/is valid?
C#
.Net
Url Validation
NUnit Test Run Order
C#
.Net
Attributes
Nunit
Tdd
Set focus on textbox in WPF
C#
.Net
Wpf
Textbox
Focus
What is Func, how and when is it used
C#
.Net
Delegates
How to create a sequence of integers in C#?
C#
.Net
F#
Sequence
Easier way to populate a list with integers in .NET
C#
.Net
Linq
List
Get all column names of a DataTable into string array using (LINQ/Predicate)
C#
.Net
Linq
Datatable
C# operator overload for `+=`?
C#
.Net
C# 4.0
.Net 4.0
Operator Overloading
Making WPF applications look Metro-styled, even in Windows 7? (Window Chrome / Theming / Theme)
.Net
Wpf
Windows 7
Windows 8
Microsoft Metro
Definition of "==" operator for Double
C#
.Net
Language Lawyer
How can I get "Copy to Output Directory" to work with Unit Tests?
C#
.Net
Visual Studio-2008
Unit Testing
Mstest
Outlook autocleaning my line breaks and screwing up my email format
.Net
Utf 8
Outlook
Smtp
Getting multiple keys of specified value of a generic Dictionary?
C#
.Net
Re-entrant locks in C#
C#
.Net
Multithreading
Locking
Deadlock
How to get a Static property with Reflection
.Net
Reflection
Static
Which Radio button in the group is checked?
C#
.Net
Winforms
Radio Button
C# Sort and OrderBy comparison
C#
.Net
Performance
Sorting
Sql Order-By
How expensive is the lock statement?
C#
.Net
Multithreading
Locking
Parallel Processing
How to specify data attributes in razor, e.g., data-externalid="23151" on @this.Html.CheckBoxFor(...)
C#
.Net
Razor
How do I enable EF migrations for multiple contexts to separate databases?
.Net
Entity Framework
Entity Framework-5
Database Migration
Upload file to FTP using C#
C#
.Net
File Upload
Ftp
Windows update caused MVC3 and MVC4 stop working
.Net
asp.net Mvc
asp.net Mvc-3
asp.net Mvc-4
Windows Update
What replaces WCF in .Net Core?
C#
.Net
Wcf
Service
.Net Core
How to prevent blank xmlns attributes in output from .NET's XmlDocument?
C#
.Net
Xml
Xml Namespaces
Xmldocument
Best way to turn an integer into a month name in c#?
.Net
Parsing
Date
When is it better to use String.Format vs string concatenation?
C#
.Net
String
Why remove unused using directives in C#?
C#
.Net
Using
How to read attribute value from XmlNode in C#?
C#
.Net
Xml
How do I submit disabled input in ASP.NET MVC?
C#
.Net
Javascript
asp.net Mvc
Will Try / Finally (without the Catch) bubble the exception?
C#
.Net
vb.net
Exception Handling
How can I find the method that called the current method?
C#
.Net
Logging
Stack Trace
system.diagnostics
Is there anything like .NET's NotImplementedException in Java?
Java
.Net
Exception
C# "internal" access modifier when doing unit testing
C#
.Net
Unit Testing
Tdd
Replace Line Breaks in a String C#
C#
.Net
String
Drag and drop files into WPF
C#
.Net
Wpf
Image
Drag and-Drop
MVVM in WPF - How to alert ViewModel of changes in Model... or should I?
C#
.Net
Wpf
Mvvm
Why do some C# lambda expressions compile to static methods?
C#
.Net
Reflection
Lambda
Are async console applications supported in .NET Core?
C#
.Net
.Net Core
How do I determine the dependencies of a .NET application?
.Net
Dll
Dependencies
Dependency Walker
How do you loop through currently loaded assemblies?
.Net
Assemblies
How can I take more control in ASP.NET?
.Net
asp.net
.Net 3.5
Viewstate
How to select only the records with the highest date in LINQ
C#
.Net
Linq
Linq to-Sql
How is performance affected by an unused using directive?
C#
.Net
Visual Studio
Using
method overloading vs optional parameter in C# 4.0
C#
.Net
C# 4.0
Overloading
Optional Parameters
How to make inline functions in C#
C#
.Net
Converting String To Float in C#
C#
.Net
String
Floating Point
Type Conversion
Convert an enum to List<string>
C#
.Net
Enums
Generic List
Populate data table from data reader
C#
.Net
ado.net
How to select .NET 4.5.2 as a target framework in Visual Studio
.Net
Visual Studio
.Net 4.5.2
Cannot find .cs files for debugging .NET source code
C#
.Net
Debugging
Unable to resolve ILogger from Microsoft.Extensions.Logging
C#
.Net
Dependency Injection
.Net Core
Ilogger
How do I create an immutable Class?
C#
.Net
Immutability
Split a collection into `n` parts with LINQ?
C#
.Net
Linq
Data Structures
How does inheritance work for Attributes?
C#
.Net
vb.net
Attributes
Is it possible to execute code once before all tests run?
.Net
Mstest
Declaration suffix for decimal type
C#
.Net
Using PropertyInfo to find out the property type
C#
.Net
Reflection
Application Crashes With "Internal Error In The .NET Runtime"
.Net
Runtime Error
Executionengineexception
Make an Installation program for C# applications and include .NET Framework installer into the setup
C#
.Net
Winforms
Visual Studio
Installation
Check whether a path is valid
C#
.Net
Winapi
Path
How can I add a hint text to WPF textbox?
.Net
Wpf
User Interface
Textbox
Best way to resolve file path too long exception
C#
.Net
String
File
Sharepoint
Why does struct alignment depend on whether a field type is primitive or user-defined?
C#
.Net
Struct
Clr
Memory Alignment
Predefined type 'System.Object' is not defined or imported .net 4.6
C#
asp.net
.Net
Json
asp.net Mvc
How do you get a string from a MemoryStream?
.Net
vb.net
String
Memorystream
Is it better to call ToList() or ToArray() in LINQ queries?
.Net
Linq
Performance
Declare a const array
C#
.Net
Arrays
Constants
Readonly
Unable to update the EntitySet - because it has a DefiningQuery and no <UpdateFunction> element exist
C#
asp.net
.Net
Entity Framework
Primary Key
"The breakpoint will not currently be hit. The source code is different from the original version." What does this mean?
.Net
Visual Studio
Debugging
How do I check for nulls in an '==' operator overload without infinite recursion?
C#
.Net
Operator Overloading
How do I get the title of the current active window using c#?
C#
.Net
Windows
Winforms
Is a memory leak created if a MemoryStream in .NET is not closed?
C#
.Net
Memory Leaks
Memorystream
How do I use WebRequest to access an SSL encrypted site using HTTPS?
C#
.Net
Https
Httpwebrequest
Webrequest
How to remove the focus from a TextBox in WinForms?
C#
.Net
Winforms
Textbox
Focus
Best practices: throwing exceptions from properties
C#
.Net
Exception
Properties
Check if one IEnumerable contains all elements of another IEnumerable
C#
.Net
Linq
Ienumerable
LINQ to Entities case sensitive comparison
C#
.Net
Entity Framework-4
Linq to-Entities
How can I get a list of users from active directory?
C#
asp.net
.Net
Active Directory
How to select different app.config for several build configurations
.Net
Visual Studio
Configuration
Continuous Integration
Release Management
Troubleshooting BadImageFormatException
C#
.Net
Exception
Test parameterization in xUnit.net similar to NUnit
C#
.Net
Unit Testing
Nunit
xunit.net
What is the proper way to check for null values?
C#
.Net
Session
Null
Null Coalescing-Operator
Getting current directory in .NET web application
C#
asp.net
.Net
Directory
Filepath
ASP.NET Web API Authentication
Android
.Net
Authentication
asp.net Web-Api
The thread has exited with code 0 (0x0) with no unhandled exception
C#
.Net
Debugging
'System.Net.Http.HttpContent' does not contain a definition for 'ReadAsAsync' and no extension method
asp.net
.Net
asp.net Mvc
asp.net Web-Api
How to open .dll files to see what is written inside?
C#
.Net
Class Library
C# equivalent of the IsNull() function in SQL Server
C#
.Net
Sql Server
Isnull
What is the difference between Debug and Release in Visual Studio?
C#
.Net
Visual Studio
Why doesn't .NET/C# optimize for tail-call recursion?
C#
.Net
Optimization
Tail Recursion
What's the difference between RouteLink and ActionLink in ASP.NET MVC?
.Net
asp.net Mvc
Html Helper
Actionlink
Routelink
Installing MSBuild 4.0 without Visual Studio 2010
.Net
Visual Studio-2010
Msbuild
Sdk
.Net 4.0
Why do we need the "event" keyword while defining events?
C#
.Net
What happens if i return before the end of using statement? Will the dispose be called?
C#
.Net
Dispose
Idisposable
Using Statement
How do you enable "Enable .NET Framework source stepping"?
.Net
Visual Studio-2010
Visual Studio
Why does Convert.ToString(null) return a different value if you cast null?
C#
.Net
What exactly happens when I set LoadUserProfile of IIS pool?
C#
.Net
Iis 7
X509certificate
Application Pool
NuGet auto package restore does not work with MSBuild
.Net
Build
Msbuild
Nuget
Nuget Package-Restore
How can I implement ISerializable in .NET 4+ without violating inheritance security rules?
C#
.Net
Serialization
Appdomain
Code Access-Security
I'm lost. What happened to ASP.NET MVC 5?
asp.net
.Net
asp.net Mvc
.Net Core
asp.net Core-Mvc
Best Practice for Forcing Garbage Collection in C#
C#
.Net
Garbage Collection
In ASP.NET, when should I use Session.Clear() rather than Session.Abandon()?
asp.net
.Net
Session
Session State
When is Windows Forms the correct choice vs WPF?
.Net
Wpf
Winforms
Windows Client
SFTP Libraries for .NET
C#
.Net
Sftp
Getting the path of the home directory in C#?
C#
.Net
HashSet<T> versus Dictionary<K, V> w.r.t searching time to find if an item exists
.Net
Performance
Dictionary
Hashset
Deep cloning objects
C#
.Net
Clone
Catch multiple exceptions at once?
C#
.Net
Exception
How do I get a consistent byte representation of strings in C# without manually specifying an encoding?
C#
.Net
String
Character Encoding
Difference between decimal, float and double in .NET?
.Net
Floating Point
Double
Decimal
Should 'using' directives be inside or outside the namespace?
C#
.Net
Namespaces
Stylecop
Code Organization
LINQ: When to use SingleOrDefault vs. FirstOrDefault() with filtering criteria
.Net
Linq
Linq to-Sql
How do I create/edit a Manifest file?
C#
.Net
Visual Studio-2010
Visual Studio-2008
Manifest
Is there an alternative to bastard injection? (AKA poor man's injection via default constructor)
C#
.Net
Oop
Dependency Injection
Constructor
What is the purpose of AsQueryable()?
C#
.Net
Linq
Ienumerable
Iqueryable
Visual Studio compiles fine, but it still shows red lines
C#
.Net
Visual Studio
Visual Studio-2012
Why are unsigned int's not CLS compliant?
C#
.Net
Unsigned Integer
Cls Compliant
How to serialize an object to XML without getting xmlns="..."?
.Net
Xml Serialization
Xml Namespaces
Procedure expects parameter which was not supplied
.Net
Sql Server
Stored Procedures
The order of elements in Dictionary
C#
.Net
Dictionary
Ienumerable
Developing C# on Linux
C#
.Net
Linux
Winforms
Ide
String.Join method that ignores empty strings?
.Net
vb.net
String
Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0
.Net
Visual Studio
Sql Server-2008-R2
Entity Framework-5
Entity Framework - Invalid Column Name '*_ID"
C#
.Net
Entity Framework-4
How to use Bootstrap 4 in ASP.NET Core
.Net
asp.net Core
Nuget
Bootstrap 4
asp.net Core-2.0
How can I discover the "path" of an embedded resource?
C#
.Net
Resources
How do I get Gridview to render THEAD?
C#
.Net
asp.net
Gridview
What is the difference between IEnumerator and IEnumerable?
C#
.Net
Ienumerable
Ienumerator
How to check if a DateTime occurs today?
C#
.Net
Datetime
How to Create Deterministic Guids
C#
.Net
Guid
Uuid
Are C# events synchronous?
C#
.Net
Events
Delegates
What is the difference between ManualResetEvent and AutoResetEvent in .NET?
C#
.Net
Multithreading
Autoresetevent
Manualresetevent
What does "yield break;" do in C#?
C#
.Net
Yield
Why shouldn't all functions be async by default?
C#
.Net
Asynchronous
Async Await
How should I inject a DbContext instance into an IHostedService?
C#
asp.net
.Net
asp.net Core
.Net Core
How do I replace the *first instance* of a string in .NET?
C#
.Net
Regex
String
Replace
.NET - How can you split a "caps" delimited string into an array?
.Net
Regex
Algorithm
String
Pascalcasing
Is String.Contains() faster than String.IndexOf()?
C#
.Net
asp.net
Performance
String
Can you help me understand Moq Callback?
.Net
Moq
What is the difference between native code, machine code and assembly code?
.Net
Assembly
Bytecode
Machine Code
LINQ - Convert List to Dictionary with Value as List
C#
.Net
Linq
Does anyone still use [goto] in C# and if so why?
C#
.Net
Coding Style
Goto
Microsoft Roslyn vs. CodeDom
.Net
Codedom
Roslyn
Decoding and verifying JWT token using System.IdentityModel.Tokens.Jwt
.Net
Wif
Jwt
Team city unmet requirement: MSBuildTools12.0_x86_Path exists
.Net
Visual Studio-2010
Visual Studio-2012
Msbuild
Why is (object)0 == (object)0 different from ((object)0).Equals((object)0)?
C#
.Net
What do two left angle brackets mean?
C#
.Net
List
For Loop
Bitwise Operators
Is there a "String.Format" that can accept named input parameters instead of index placeholders?
C#
.Net
String
String Formatting
How do I programmatically get the GUID of an application in .NET 2.0
C#
.Net
Visual Studio-2005
.Net 2.0
Guid
What is a "first chance exception"?
.Net
Visual Studio
Debugging
Exception
First Chance-Exception
Random row from Linq to Sql
C#
.Net
Linq to-Sql
How to Load an Assembly to AppDomain with all references recursively?
C#
.Net
Reflection
Assemblies
Appdomain
.net implementation of bcrypt
.Net
Bcrypt
bcrypt.net
How can I auto increment the C# assembly version via our CI platform (Hudson)?
.Net
Msbuild
Continuous Integration
Hudson
Versioning
How to do ToString for a possibly null object?
C#
.Net
String
Object
Null
How to make Visual Studio not put { on a new line?
C#
.Net
Visual Studio
Formatting
If Statement
How to center a label text in WPF?
C#
.Net
Wpf
Simplest way to do a fire and forget method in c# 4.0
C#
.Net
.Net 4.0
Task Parallel-Library
Fire and-Forget
how to use XPath with XDocument?
C#
.Net
Xml
Xpath
Linq to-Xml
.NET Short Unique Identifier
C#
.Net
Uniqueidentifier
How to view the Folder and Files in GAC?
.Net
.Net Assembly
Gac
Returning anonymous type in C#
C#
.Net
Anonymous Types
Return Type
Two-way / bidirectional Dictionary in C#?
C#
.Net
Dictionary
Async/Await vs Threads
C#
.Net
Multithreading
Async Await
How to build a query string for a URL in C#?
C#
.Net
Url
Query String
Checking if HttpStatusCode represents success or failure
C#
.Net
system.net
Is this technically an O(1) algorithm for "Hello World"?
C#
.Net
Algorithm
Big O
How can I make the computer beep in C#?
C#
.Net
Audio
Beep
System.BadImageFormatException: Could not load file or assembly (from installutil.exe)
.Net
Windows Services
X86
64 Bit
X86 64
Cannot find Dumpbin.exe
C#
C++
.Net
Visual Studio
Visual Studio-2005
When should use Readonly and Get only properties
C#
.Net
Hide Console Window in C# Console Application
.Net
Console Application
Mapping object to dictionary and vice versa
C#
.Net
Dictionary
Reflection
Mapping
"The given path's format is not supported."
C#
.Net
Webforms
Upload
Stream
Adjusting CommandTimeout in Dapper.NET?
C#
.Net
Timeout
Dapper
How to completely uninstall Visual Studio 2010?
.Net
Windows
Visual Studio
Uninstallation
'is' versus try cast with null check
C#
.Net
Casting
Resharper
Any decent text diff/merge engine for .NET?
.Net
Merge
Diff
How do I make a WinForms app go Full Screen
C#
.Net
Winforms
Create a dictionary on a list with grouping
C#
.Net
Linq
.Net 3.5
Strip double quotes from a string in .NET
C#
.Net
vb.net
C#: List All Classes in Assembly
C#
.Net
Class Structure
read string from .resx file in C#
C#
.Net
String
.Net 4.0
How can I programmatically generate keypress events in C#?
C#
.Net
Wpf
Keyboard Events
What's the difference between Application.ThreadException and AppDomain.CurrentDomain.UnhandledException?
C#
.Net
Winforms
Exception Handling
When and why would you seal a class?
C#
.Net
Oop
C++ Cli
System.Threading.Timer in C# it seems to be not working. It runs very fast every 3 second
C#
.Net
Timer
Send JSON via POST in C# and Receive the JSON returned?
C#
.Net
Json
Httpwebrequest
json.net
Windows API Code Pack: Where is it?
.Net
Windows Api-Code-Pack
Reactive Extensions bug on Windows Phone
C#
.Net
Compiler Errors
Windows Phone
system.reactive
What does the Visual Studio "Any CPU" target mean?
.Net
Visual Studio-2008
Build
64 Bit
Getting image dimensions without reading the entire file
C#
.Net
Image
Image Manipulation
What is the difference between using IDisposable vs a destructor in C#?
C#
.Net
Dispose
Destructor
Path.Combine absolute with relative path strings
C#
.Net
Windows
Path
Filesystems
How to identify if the DLL is Debug or Release build (in .NET)
.Net
Dll
Build
Debugging
Release
Does Parallel.ForEach limit the number of active threads?
C#
.Net
C# 4.0
Parallel Processing
C# Convert string from UTF-8 to ISO-8859-1 (Latin1) H
C#
.Net
Encoding
Utf 8
Iso 8859-1
What is the use of the ArraySegment<T> class?
C#
Arrays
.Net
How to add text to request body in RestSharp
.Net
Xml
Restsharp
Check if full path given
C#
.Net
Validation
Path
C# Sortable collection which allows duplicate keys
C#
.Net
Collections
Sortedlist
An error occurred while validating. HRESULT = '8000000A'
.Net
Visual Studio-2010
Windows Installer
Devenv
Hresult
LINQ Using Max() to select a single row
C#
.Net
Linq
Generating human-readable/usable, short but unique IDs
.Net
Database
Identity
How to remove k__BackingField from json when Deserialize
.Net
Json
Serialization
Deserialization
"application/json" constant in .NET framework
C#
.Net
asp.net Mvc
Content Type
Web API 2: how to return JSON with camelCased property names, on objects and their sub-objects
C#
.Net
asp.net Web-Api
json.net
asp.net Web-Api2
Reliable timer in a console application
C#
.Net
vb.net
Timer
Wait until file is unlocked in .NET
.Net
.Net 3.5
File
Looking for C# HTML parser
C#
.Net
Html
Parsing
What is the simplest way to get indented XML with line breaks from XmlDocument?
C#
.Net
Xmldocument
Outerxml
Setting an object to null vs Dispose()
C#
.Net
Disposable
Why should I implement ICloneable in c#?
C#
.Net
Cloneable
Icloneable
Parsing Visual Studio Solution files
C#
.Net
Visual Studio
Parsing
BCL (Base Class Library) vs FCL (Framework Class Library)
C#
.Net
Terminology
Benchmarking small code samples in C#, can this implementation be improved?
C#
.Net
Performance
Profiling
Does .NET have a way to check if List a contains all items in List b?
C#
.Net
List
Generics
Mono
Why use strong named assemblies?
C#
.Net
How to get the list of all printers in computer
C#
.Net
Winforms
How is null + true a string?
C#
.Net
String
Null
Types
LINQ where vs takewhile
.Net
Linq
What is a Portable Class Library?
.Net
Portable Class-Library
Read SQL Table into C# DataTable
C#
.Net
asp.net
Sql
Datatable
How to check if an object is a certain type
.Net
vb.net
Object
Drop Down-Menu
Object Type
Cannot convert from an IEnumerable<T> to an ICollection<T>
C#
.Net
Are there any cases when it's preferable to use a plain old Thread object instead of one of the newer constructs?
C#
.Net
Multithreading
Accessing UI (Main) Thread safely in WPF
C#
.Net
Wpf
Multithreading
Datagrid
Why are properties without a setter not serialized
C#
.Net
Xml Serialization
What value should I pass into TimeZoneInfo.FindSystemTimeZoneById(String)?
C#
.Net
Timezone
What 'additional configuration' is necessary to reference a .NET 2.0 mixed mode assembly in a .NET 4.0 project?
C#
.Net
Sqlite
.Net 4.0
system.data.sqlite
C# Set collection?
C#
.Net
Collections
Set
How do I exit a WPF application programmatically?
C#
.Net
Wpf
Shutdown
'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine
.Net
Excel
Aceoledb
Can't specify the 'async' modifier on the 'Main' method of a console app
C#
.Net
Asynchronous
Console Application
Algorithm to detect overlapping periods
C#
.Net
Algorithm
Datetime
Time
WebUtility.HtmlDecode replacement in .NET Core
C#
.Net
asp.net Core
asp.net Core-Mvc
Converting SVG to PNG using C#
C#
.Net
Png
Svg
Targeting both 32bit and 64bit with Visual Studio in same solution/project
.Net
Visual Studio
64 Bit
X86 64
What is the best alternative IDE to Visual Studio
.Net
Visual Studio
Ide
Naming conventions for abstract classes
.Net
Naming Conventions
Abstract Class
Filtering fiddler to only capture requests for a certain domain
C#
.Net
Windows
Fiddler
Is there a predefined enumeration for Month in the .NET library?
C#
.Net
Datetime
Enumeration
How do I find the current executable filename?
C#
.Net
What is the difference between X509Certificate2 and X509Certificate in .NET?
.Net
Ssl
Certificate
X509certificate
Reducing memory usage of .NET applications?
C#
.Net
Optimization
Memory
Memory Optimization
force browsers to get latest js and css files in asp.net application
Javascript
C#
asp.net
.Net
asp.net Mvc
Error 5 : Access Denied when starting windows service
C#
.Net
Wcf
Windows Services
Inline instantiation of a constant List
C#
.Net
How do I check if a type provides a parameterless constructor?
C#
.Net
Reflection
Constructor
Types
What's the difference between MemoryCache.Add and MemoryCache.Set?
.Net
Memorycache
Why Large Object Heap and why do we care?
.Net
Garbage Collection
Clr
Large Object-Heap
What does <T> denote in C#
C#
.Net
Generics
What reference do I need to use Microsoft.Office.Interop.Excel in .NET?
C#
.Net
Office Interop
Visual Studio-Express
ASP.NET MVC: Custom Validation by DataAnnotation
C#
.Net
asp.net Mvc
asp.net Mvc-3
Data Annotations
Controls on Pivot disappear
C#
.Net
Windows Phone-8
How to compare 'μ' and 'µ' in C#
C#
.Net
String
Unicode
String Comparison
How to use RestSharp with async/await
C#
.Net
Asynchronous
Async Await
Restsharp
Why can't I use the null propagation operator in lambda expressions?
C#
.Net
Compiler Errors
C# 6.0
Null Propagation-Operator
What's the best way of implementing a thread-safe Dictionary?
C#
.Net
Thread Safety
Collections
How do I create 7-Zip archives with .NET?
C#
.Net
Compression
7zip
how can you easily check if access is denied for a file in .NET?
C#
.Net
File Access
Get timezone from DateTime
C#
.Net
Datetime
Timezone
How can I query for null values in entity framework?
.Net
Entity Framework
ado.net
How to make a window always stay on top in .Net?
C#
.Net
Winforms
What is your favorite date and time format in a file name?
.Net
Datetime
Filenames
Index of Currently Selected Row in DataGridView
C#
.Net
Winforms
Datagridview
How to sort an IEnumerable<string>
C#
.Net
String
Sorting
Ienumerable
Why we have both jagged array and multidimensional array?
C#
.Net
Arrays
Visual Studio-2010
Ensuring json keys are lowercase in .NET
.Net
Json
json.net
How to return value from Action()?
C#
.Net
Linq
TimeSpan ToString format
C#
.Net
How to use LINQ to select object with minimum or maximum property value
C#
.Net
Linq
How do I run Visual Studio as an administrator by default?
.Net
Visual Studio
Visual Studio-2010
Installation
Associating enums with strings in C#
C#
.Net
Disable SSL fallback and use only TLS for outbound connections in .NET? (Poodle mitigation)
.Net
Ssl
Unable to return Tuple from a method using Visual Studio 2017 and C# 7.0
C#
.Net
Visual Studio
Visual Studio-2017
C# 7.0
How can you do paging with NHibernate?
.Net
Nhibernate
Orm
Pagination
What's so wrong about using GC.Collect()?
.Net
Performance
Memory Management
Garbage Collection
Mark parameters as NOT nullable in C#/.NET?
C#
.Net
Parameters
Null
How do I list all loaded assemblies?
C#
.Net
Assemblies
What's the difference between the WebConfigurationManager and the ConfigurationManager?
C#
.Net
asp.net
Configurationmanager
Webconfigurationmanager
How did Microsoft create assemblies that have circular references?
.Net
Assemblies
Circular Reference
Base Class-Library
Reading large text files with streams in C#
C#
.Net
Stream
Streamreader
Large Files
Disable JavaScript error in WebBrowser control
C#
.Net
Winforms
Webbrowser Control
How to know user has clicked "X" or the "Close" button?
C#
.Net
Winforms
ASP.NET MVC Razor pass model to layout
C#
.Net
asp.net Mvc
Razor
internal vs public in C#
C#
.Net
Enter "&" symbol into a text Label in Windows Forms?
C#
.Net
Winforms
Label
Special Characters
What is the difference between log4net and ELMAH?
C#
.Net
Logging
Log4net
Elmah
How to prevent ReflectionTypeLoadException when calling Assembly.GetTypes()
.Net
Reflection
Plugins
.Net Assembly
Use the XmlInclude or SoapInclude attribute to specify types that are not known statically
C#
.Net
Xml
Xmlserializer
Convert object of any type to JObject with Json.NET
C#
.Net
json.net
Is .NET/Mono or Java the better choice for cross-platform development?
Java
.Net
Linux
Mono
Cross Platform
.NET List<T> Concat vs AddRange
.Net
Linq
List
Extension Methods
How to find out which version of the .NET Framework an executable needs to run?
.Net
Version
Executable
Why C# structs cannot be inherited?
C#
.Net
DateTime to javascript date
C#
.Net
Javascript
Change the Target Framework for all my projects in a Visual Studio Solution
.Net
Visual Studio-2010
Visual Studio-2012
What does Html.HiddenFor do?
.Net
asp.net Mvc
asp.net Mvc-2
Html Helper
html.hiddenfor
OAuth with Verification in .NET
.Net
Oauth
Mendeley
Getting files by creation date in .NET
C#
.Net
File
How to remove first 10 characters from a string?
C#
asp.net
.Net
String
Substring
How do I specify the exit code of a console application in .NET?
C#
.Net
Exit Code
Best way to reverse a string
C#
.Net
Performance
Algorithm
Unicode
If my interface must return Task what is the best way to have a no-operation implementation?
C#
.Net
Task Parallel-Library
Async Await
Threadpool
How to verify that method was NOT called in Moq?
C#
.Net
Moq
What is the purpose of a question mark after a type (for example: int? myVariable)?
C#
asp.net
.Net
How can I check if a string is null or empty in PowerShell?
.Net
String
Powershell
Null
Why can't a 'continue' statement be inside a 'finally' block?
C#
.Net
What's the false operator in C# good for?
C#
.Net
Syntax
Why seal a class?
.Net
Performance
Attribute to Skip over a Method while Stepping in Debug Mode
C#
.Net
Debugging
Attributes
How does TransactionScope roll back transactions?
C#
.Net
Nhibernate
Transactions
Transactionscope
Best way to test exceptions with Assert to ensure they will be thrown
C#
.Net
Unit Testing
Read-only list or unmodifiable list in .NET 4.0
C#
Java
.Net
Readonly Collection
Event Signature in .NET -- Using a Strong Typed 'Sender'?
C#
.Net
vb.net
Events
Capture Stored Procedure print output in .NET
C#
.Net
Stored Procedures
How to start a Process as administrator mode in C#
C#
.Net
Parse a Number from Exponential Notation
C#
.Net
Number Formatting
Exponent
What is the difference between a reference type and value type in c#?
C#
.Net
Value Type
Reference Type
How can I perform a culture-sensitive "starts-with" operation from the middle of a string?
.Net
String
Unicode
ASP.NET MVC security patch to version 3.0.0.1 breaks build
.Net
asp.net Mvc
Versioning
Assembly References
Assembly Binding-Redirect
Windows SDK 7.1 Setup failure
.Net
Windows
Sdk
.Net 4.0
Installation
How do yield and await implement flow of control in .NET?
C#
.Net
Asynchronous
Async Await
Odd return syntax statement
C#
.Net
C# 7.0
How can I join int[] to a character-separated string in .NET?
C#
.Net
.Net 3.5
Best way to hide a window from the Alt-Tab program switcher?
.Net
Wpf
Winforms
Alt Tab
Opposite of String.Split with separators (.net)
C#
.Net
Arrays
String
Is it safe to check floating point values for equality to 0?
C#
.Net
Floating Point
Precision
Zero
When to use IComparable<T> Vs. IComparer<T>
.Net
Icomparable
Icomparer
The type or namespace name 'Objects' does not exist in the namespace 'System.Data'
C#
.Net
Visual Studio-2008
Linq to-Entities
Entities
C# - code to order by a property using the property name as a string
C#
.Net
Linq
Linq to-Entities
Console.WriteLine does not show up in Output window
C#
.Net
Winforms
Cannot send a content-body with this verb-type
.Net
Webrequest
Create web service proxy in Visual Studio from a WSDL file
C#
.Net
Visual Studio
Web Services
Wsdl
How to get the location of the DLL currently executing?
C#
.Net
Dll
File Io
Using a 'using alias = class' with generic types?
C#
.Net
Generics
Alias
Why am I getting this error: No mapping specified for the following EntitySet/AssociationSet - Entity1?
.Net
Entity Framework
Entity Framework-4
How to use the ternary operator inside an interpolated string?
C#
.Net
Ternary Operator
String Interpolation
C# 6.0
Cleanest way to write retry logic?
C#
.Net
Protect .NET code from reverse engineering?
C#
.Net
Obfuscation
Reverse Engineering
How do I fix the Visual Studio compile error, "mismatch between processor architecture"?
.Net
Visual Studio
"An attempt was made to load a program with an incorrect format" even when the platforms are the same
.Net
64 Bit
Pinvoke
32 Bit
Badimageformatexception
Creating threads - Task.Factory.StartNew vs new Thread()
C#
.Net
Multithreading
.Net 4.0
MsDeploy is returning 403 forbidden
.Net
Iis 7
Msdeploy
How to flatten tree via LINQ?
C#
.Net
Linq
.Net 4.0
Tree
How to use await in a loop
C#
.Net
Async Await
Get the index of the nth occurrence of a string?
C#
.Net
String
Indexing
Indexof
Bidirectional 1 to 1 Dictionary in C#
C#
.Net
Collections
Is there a way of making strings file-path safe in c#?
C#
.Net
String
Filepath
GetProperties() to return all properties for an interface inheritance hierarchy
C#
.Net
Reflection
Why C# implements methods as non-virtual by default?
C#
Java
.Net
Virtual Functions
Like Operator in Entity Framework?
.Net
Sql Server
Entity Framework
Linq to-Entities
When using a Settings.settings file in .NET, where is the config actually stored?
C#
.Net
Settings
Why static classes cant implement interfaces?
C#
.Net
Interface
Static Classes
How to Get a Sublist in C#
C#
.Net
List
.Net 3.5
Sublist
How do I sort an observable collection?
C#
.Net
Wpf
Sorting
Observablecollection
C# DateTime.Now precision
C#
.Net
Datetime
Precision
Time Precision
Paging with LINQ for objects
C#
.Net
Linq
Paging
What's the difference between Console.WriteLine() vs Debug.WriteLine()?
.Net
vb.net
WPF TextBox won't fill in StackPanel
.Net
Wpf
How do I set a ViewModel on a window in XAML using DataContext property?
.Net
Wpf
Xaml
Mvvm
Post build event execute PowerShell
C#
.Net
Powershell
Msbuild
What's the difference between Uri.ToString() and Uri.AbsoluteUri?
C#
.Net
Moq verify with object parameter
C#
.Net
Unit Testing
Moq
Object reference not set to an instance of an object.Why doesn't .NET show which object is `null`?
C#
.Net
Access private field of another object in same class
Java
C++
.Net
Oop
STAThread and multithreading
C#
.Net
Multithreading
Sta
Implementing MVC with Windows Forms
.Net
Winforms
Model View-Controller
How to change the color of progressbar in C# .NET 3.5?
C#
.Net
Winforms
.Net 3.5
Reading 64bit Registry from a 32bit application
C#
.Net
64 Bit
Registry
32 Bit
Is there a difference between "throw" and "throw ex"?
C#
.Net
Exception
Exception Handling
What is the proper way to rethrow an exception in C#?
C#
.Net
Exception
What's the difference between StaticResource and DynamicResource in WPF?
.Net
Wpf
Xaml
Resources
.NET: Determine the type of “this” class in its static method
C#
.Net
Types
Static Methods
What is the significance of ProjectTypeGuids tag in the visual studio project file
.Net
Visual Studio
Visual Studio-2010
Projects and-Solutions
Nullable<int> vs. int? - Is there any difference?
C#
.Net
Why is my process's Exited method not being called?
C#
.Net
A property or indexer may not be passed as an out or ref parameter
C#
.Net
Error Handling
Can Visual Studio 2012 be installed side-by-side w/ Visual Studio 2010?
.Net
Visual Studio-2010
Visual Studio
Visual Studio-2012
.Net 4.5
dynamic does not contain a definition for a property from a project reference
C#
.Net
Dynamic
Dynamicobject
How do arrays in C# partially implement IList<T>?
C#
.Net
Arrays
List
Interface
Does a C# app track how long its been running?
C#
.Net
Only Add Unique Item To List
C#
.Net
C# 4.0
How to force a Solution file (SLN) to be opened in Visual Studio 2013?
.Net
Visual Studio-2012
Solution
Visual Studio-2013
Average of 3 long integers
C#
.Net
Long Integer
Feature 'using declarations' is not available in C# 7.3. Please use language version 8.0 or greater - Error on one machine but works on another
C#
.Net
.Net 4.6
Why is Array.Length an int, and not an uint
C#
.Net
Int
Uint
Passing data to Master Page in ASP.NET MVC
C#
.Net
asp.net
asp.net Mvc
When would you use delegates in C#?
C#
.Net
Delegates
Declare a dictionary inside a static class
C#
.Net
Dictionary
What is the difference between List (of T) and Collection(of T)?
.Net
List
Collections
How do I get rid of "[some event] never used" compiler warnings in Visual Studio?
C#
.Net
Wpf
Events
Compiler Warnings
.NET console application exit event
.Net
Console Application
Complexity Theory
Marshaling – what is it and why do we need it?
C#
.Net
Unmanaged
Marshalling
Managed
What is a service bus and when do I need one?
.Net
Nservicebus
Servicebus
What is WCF RIA services?
C#
.Net
Wcf
Ria
How do I attach Visual Studio to a process that is not started yet?
.Net
Visual Studio
Debugging
Process
MVC4 style bundle giving 403
.Net
asp.net Mvc
Razor
asp.net Mvc-4
Bundling and-Minification
How can I use escape characters with string interpolation in C# 6?
C#
.Net
String Interpolation
Multiline C# interpolated string literal
C#
.Net
String
Multiline
String Interpolation
The name 'ConfigurationManager' does not exist in the current context
C#
.Net
Visual Studio
Visual Studio-2008
Horrible performance using SqlCommand Async methods with large data
C#
.Net
Sql Server
Asynchronous
Async Await
How do I get the MAX row with a GROUP BY in LINQ query?
.Net
Linq
Linq to-Sql
Play audio from a stream using C#
.Net
Audio
Stream
Mp3
Naudio
Shortest way to check for null and assign another value if not
C#
.Net
Null
Variable Assignment
How does one test async code using MSTest
.Net
Unit Testing
CA2202, how to solve this case
C#
.Net
Code Analysis
Fxcop
Getting Date or Time only from a DateTime Object
C#
.Net
Datetime
Why is LINQ JOIN so much faster than linking with WHERE?
.Net
Linq
Performance
Join
Linq to-Dataset
Should I Stop Stopwatch at the end of the method?
C#
.Net
Stopwatch
What can I do to resolve a "Row not found or changed" Exception in LINQ to SQL on a SQL Server Compact Edition Database?
.Net
Linq
Linq to-Sql
Why/when should you use nested classes in .net? Or shouldn't you?
.Net
Class
Nested
Fxcop
WPF Data Binding and Validation Rules Best Practices
.Net
Wpf
Data Binding
Validation
What is the correct format to use for Date/Time in an XML file
.Net
Xml
Datetime
Access to Modified Closure (2)
C#
.Net
Resharper
Closures
How to create a WPF Window without a border that can be resized via a grip only?
.Net
Wpf
Window
Controltemplate
Resizegrip
AddBusinessDays and GetBusinessDays
C#
.Net
How can I format DateTime to web UTC format?
C#
.Net
Datetime
Utc
"Or" equivalent in Linq Where() lambda expression
.Net
Linq
Where Clause
Monitor vs lock
C#
.Net
Multithreading
Locking
Monitor
Making a cURL call in C#
C#
.Net
Http
Curl
how do I work around log4net keeping changing publickeytoken
.Net
Dll
Log4net
Publickeytoken
Insert data using Entity Framework model
C#
.Net
Entity Framework
How do I calculate someone's age based on a DateTime type birthday?
C#
.Net
Datetime
How do I create an Excel (.XLS and .XLSX) file in C# without installing Microsoft Office?
C#
.Net
Excel
File Io
How do you unit test private methods?
.Net
Unit Testing
Tdd
Private
How do I remove diacritics (accents) from a string in .NET?
.Net
String
Diacritics
How do I handle Database Connections with Dapper in .NET?
C#
.Net
Dapper
Exception when AddWithValue parameter is NULL
C#
.Net
ado.net
.NET Out Of Memory Exception - Used 1.3GB but have 16GB installed
C#
.Net
Out of-Memory
Visual Studio 2015 project no longer runs in debug mode
.Net
Visual Studio
Visual Studio-2015
How do I sync the SVN revision number with my ASP.NET web site?
.Net
asp.net
Svn
Versioning
What is the difference between lambdas and delegates in the .NET Framework?
C#
.Net
Lambda
Remove unused references (!= "using")
.Net
Visual Studio
Reference
How do I find out what directory my console app is running in?
C#
.Net
Console Application
Is there a .NET equivalent to Apache Hadoop?
C#
.Net
Hadoop
Mapreduce
SQLite equivalent to ISNULL(), NVL(), IFNULL() or COALESCE()
.Net
Sqlite
Dbnull
List<T>.Contains() is very slow?
.Net
Arrays
Generics
List
.NET WPF Remember window size between sessions
C#
.Net
Wpf
Windows
Checking if an object is a number in C#
C#
.Net
Serialization
Xml Serialization
String escape into XML
C#
.Net
Xml
Visual Studio-2008
Escaping
How are nested capturing groups numbered in regular expressions?
Java
.Net
Regex
Perl
Language Agnostic
How to show a custom error or warning message box in .NET Winforms?
C#
.Net
Winforms
NameValueCollection vs Dictionary<string,string>
C#
.Net
Collections
Dictionary
Namevaluecollection
Why do we use finally blocks?
Java
.Net
Finally
GetFiles with multiple extensions
C#
.Net
Fileinfo
Getfiles
Read Variable from Web.Config
C#
.Net
asp.net
Web Config
Convert JObject into Dictionary<string, object>. Is it possible?
C#
.Net
Json
json.net
LINQ to Entities only supports casting EDM primitive or enumeration types with IEntity interface
C#
.Net
Entity Framework
Expression Trees
Dbcontext
How to compare Unicode characters that "look alike"?
C#
.Net
String
Unicode
String Comparison
Is there anything like asynchronous BlockingCollection<T>?
C#
.Net
Collections
Task Parallel-Library
Async Await
Is the VC++ code DOM accessible from VS addons?
.Net
Visual Studio
Visual C++
C++ Cli
Codedom
What is the real overhead of try/catch in C#?
C#
.Net
Performance
Optimization
Try Catch
Reading PDF documents in .Net
C#
.Net
Pdf
What's the foolproof way to tell which version(s) of .NET are installed on a production Windows Server?
.Net
Windows
Deployment
Get output parameter value in ADO.NET
C#
.Net
ado.net
HashSet vs. List performance
.Net
Performance
Collections
List
Hash
Using async/await for multiple tasks
C#
.Net
Task Parallel-Library
Async Await
C# 5.0
Is DateTime.Now the best way to measure a function's performance?
C#
.Net
Performance
Datetime
Timer
Asynchronously wait for Task<T> to complete with timeout
C#
.Net
Task Parallel-Library
What is the difference between Nullable<T>.HasValue or Nullable<T> != null?
C#
.Net
Null
Nullable
Best way to get whole number part of a Decimal number
C#
.Net
Decimal
Int
What is the best way to modify a list in a 'foreach' loop?
C#
.Net
List
Enumeration
Enumerable
DataContractSerializer doesn't call my constructor?
C#
.Net
Constructor
Serialization
Datacontractserializer
Unrecognized escape sequence for path string containing backslashes
C#
.Net
String
Path
Escaping
What's the difference between a Resource and an Embedded Resource in a C# application?
C#
.Net
Wpf
Resources
Embedded Resource
List<T> vs BindingList<T> Advantages/DisAdvantages
C#
.Net
Winforms
Data Binding
Datagridview
.NET 4.0 build issues on CI server
.Net
.Net 4.0
Msbuild
Build
Continuous Integration
Best way to check if a Data Table has a null value in it
C#
.Net
Validation
Datatable
Null
Regex to match more than 2 white spaces but not new line
C#
.Net
Regex
Newline
Whitespace
Sort a list alphabetically
C#
.Net
Linq
Sorting
Conditional Validation using Fluent Validation
C#
.Net
asp.net Mvc
Validation
Fluentvalidation
Why there are 5 Versions of Timer Classes in .NET?
C#
.Net
Timer
Thread.Sleep replacement in .NET for Windows Store
C#
.Net
Windows Store
Windows Store-Apps
Why doesn't incrementing Nullable<int> throw an exception?
C#
.Net
Nullable
Wrapping StopWatch timing with a delegate or lambda?
C#
.Net
Delegates
Lambda
Is there a string math evaluator in .NET?
C#
.Net
Replace host in Uri
C#
.Net
Uri
Large Object Heap Fragmentation
C#
.Net
Memory Management
Memory Leaks
Windbg
WCF Error - Could not find default endpoint element that references contract 'UserService.UserService'
C#
.Net
Wcf
Draw a single pixel on Windows Forms
C#
.Net
Winforms
Gdi+
Pixel
Namespace-only class visibility in C#/.NET?
C#
.Net
How can I catch a 404?
C#
.Net
Exception Handling
Error Handling
Http Status-Code-404
Practical example where Tuple can be used in .Net 4.0?
C#
.Net
vb.net
.Net 4.0
C# 4.0
Single click edit in WPF DataGrid
C#
.Net
Wpf
Events
Xaml
A reference to the dll could not be added
.Net
Wcf
Reference
What is the major use of MarshalByRefObject?
C#
.Net
Can you explain Liskov Substitution Principle with a good C# example?
C#
.Net
Oop
Solid Principles
Liskov Substitution-Principle
Linq Query keeps throwing "Unable to create a constant value of type System.Object....", Why?
C#
.Net
Winforms
Linq
Entity Framework
How can I bring my application window to the front?
C#
.Net
Winforms
Get value of a public static field via reflection
C#
.Net
Switch case on type c#
C#
.Net
Optimization
Switch Statement
how to use views in code first entity framework
.Net
Database
Entity Framework
View
Code First
The SqlParameter is already contained by another SqlParameterCollection - Does using() {} cheat?
C#
.Net
Sql Server
ado.net
Get the decimal part from a double
C#
.Net
Check if a property exists in a class
C#
.Net
Reflection
What are regular expression Balancing Groups?
C#
.Net
Regex
Balancing Groups
WCF - How to Increase Message Size Quota
.Net
asp.net
Wcf
.Net 3.5
No AppDomains in .NET Core! Why?
.Net
Clr
Appdomain
.Net Core
How to turn off the logging done by the ASP.NET core framework
C#
asp.net
.Net
asp.net Core
Logging
Detected package downgrade warning (dotnet core, vs 2017)
.Net
Nuget
.Net Core
Visual Studio-2017
Csproj
System.ServiceModel not found in .NET Core project
C#
.Net
Wcf
.Net Core
Can you use Microsoft Entity Framework with Oracle?
.Net
Oracle
Entity Framework
odp.net
Where is the constant for "HttpRequest.RequestType" and "WebRequest.Method" values in .NET?
C#
.Net
asp.net
Capture console exit C#
C#
.Net
Events
Console
Exit
C# naming convention for enum and matching property
C#
.Net
Enums
Naming Conventions
What directory does a Windows Service run in?
.Net
Windows Services
How to locate fuslogvw.exe on my machine?
.Net
How can I make the xmlserializer only serialize plain xml?
C#
.Net
Xml Serialization
Xml Declaration
How to catch SqlException caused by deadlock?
.Net
Sql Server-2008
Deadlock
Try Catch
Sqlexception
How to convert "0" and "1" to false and true
C#
.Net
asp.net
Odbc
Boolean Logic
Are static members of a generic class tied to the specific instance?
C#
.Net
Generics
Static
How to get status code from webclient?
C#
.Net
vb.net
Webclient
Can't change target platform to "any CPU"
C#
.Net
Visual Studio-2010
Visual Studio
Build
Proper way to put comments in build events command line?
.Net
Visual Studio
Visual Studio-2010
How to use AutoMapper .ForMember?
.Net
Automapper
Received an invalid column length from the bcp client for colid 6
C#
.Net
Sql Server
Database
Sql Server-2005
Why doesn't IList support AddRange
C#
.Net
Ilist
Difference of Dictionary.Add vs Dictionary[key]=value
C#
.Net
When is it better to use a Tuple versus a KeyValuePair?
.Net
Semantics
Your project is not referencing the ".NETFramework,Version=v4.5" framework.
.Net
Json
Entity Framework
Visual Studio-2015
Nuget
The current .NET SDK does not support targeting .NET Core 2.1. Either target .NET Core 2.0 or lower, or use a .NET SDK that supports .NET Core 2.1
.Net
.Net Core
How to redirect to a dynamic login URL in ASP.NET MVC
.Net
asp.net Mvc
Authentication
Forms Authentication
asp.net Routing
MultipleActiveResultSets=True or multiple connections?
C#
.Net
Sql Server
Sql Server-2005
ado.net
Concatenate strings instead of using a stack of TextBlocks
.Net
Wpf
Datatemplate
Is it necessary to manually close and dispose of SqlDataReader?
C#
Sql
.Net
ado.net
Anything wrong with NOT signing a .NET assembly?
.Net
Strongname
How do you serialize a string as CDATA using XmlSerializer?
C#
.Net
Xml Serialization
What are your favorite extension methods for C#? (codeplex.com/extensionoverflow)
C#
.Net
Open Source
Extension Methods
Deserialize JSON object into dynamic object using Json.net
C#
.Net
json.net
.NET / C# - Convert char[] to string
C#
.Net
Arrays
String
Char
Difference between Math.Floor() and Math.Truncate()
.Net
Math
How do I truncate a .NET string?
C#
.Net
String
Truncate
Double to string conversion without scientific notation
C#
.Net
Floating Point
Number Formatting
How do I write LINQ's .Skip(1000).Take(100) in pure SQL?
.Net
Sql
Sql Server
What's the difference between Uri.Host and Uri.Authority
C#
.Net
Uri
Resolve Type from Class Name in a Different Assembly
C#
.Net
Reflection
Where is the Application.DoEvents() in WPF?
C#
.Net
Wpf
Xaml
Settings.settings vs. app.config in .NET desktop app
.Net
App Config
settings.settings
Escape invalid XML characters in C#
C#
.Net
Xml
Escaping
Use a 'try-finally' block without a 'catch' block
C#
.Net
Exception
Exception Handling
How to return value with anonymous method?
C#
.Net
Lambda
App.config: User vs Application Scope
C#
.Net
Winforms
App Config
Application Settings
the name <...> does not exist in the namespace clr-namespace <...>
C#
.Net
Wpf
Xaml
Namespaces
System.web.mvc missing
C#
asp.net
.Net
asp.net Mvc
Authentication failed because remote party has closed the transport stream
.Net
Openssl
X509certificate
Sslstream
Publishing from Visual Studio 2015 - allow untrusted certificates
.Net
Ssl
Visual Studio-2015
Publish
asp.net Core
How does one tell if an IDisposable object reference is disposed?
C#
.Net
Dispose
Idisposable
Validating file types by regular expression
C#
asp.net
.Net
Regex
How to read a text file reversely with iterator in C#
C#
.Net
Merging two images in C#/.NET
C#
.Net
Image
Possible to call C++ code from C#?
C#
.Net
C++
Unmanaged
Managed
Is .NET Remoting really deprecated?
.Net
Wcf
Remoting
Don't stop debugger at THAT exception when it's thrown and caught
C#
.Net
Visual Studio-2008
.Net 3.5
Debugging
Why is ReadOnlyObservableCollection.CollectionChanged not public?
C#
.Net
Collections
Is MVVM pointless?
.Net
Wpf
Mvvm
Easiest way to check if an arbitrary String is a valid filename
C#
.Net
File
Does LINQ work with IEnumerable?
.Net
Linq
Ienumerable
How to create arguments for a Dapper query dynamically
C#
.Net
Dapper
How to compare two List<String> to each other?
C#
.Net
MemoryStream - Cannot access a closed Stream
C#
asp.net
.Net
Streamwriter
Memorystream
How to check If a Enum contain a number?
C#
.Net
Enums
Convert time span value to format "hh:mm Am/Pm" using C#
C#
.Net
How to modify a KeyValuePair value?
C#
.Net
Key Value
NServiceBus vs MassTransit
.Net
Nservicebus
Esb
Masstransit
What is the syntax for an inner join in LINQ to SQL?
C#
.Net
Sql
Linq to-Sql
Join
A good solution for await in try/catch/finally?
C#
.Net
Exception Handling
Async Await
C# 5.0
The type is defined in an assembly that is not referenced, how to find the cause?
C#
asp.net
.Net
asp.net 4.0
Roslyn failed to compile code
C#
.Net
Linq
Roslyn
Moq - Non-overridable members may not be used in setup / verification expressions
C#
.Net
Unit Testing
Moq
Extending an enum via inheritance
C#
Java
.Net
Serialize a nullable int
C#
.Net
Xml
Serialization
Setting tab order in WPF
.Net
Wpf
Tab Ordering
Keyboard Navigation
Float vs Double Performance
C#
.Net
Clr
Performance
How can I create a product key for my C# application?
C#
.Net
License Key
Can I use a collection initializer for Dictionary<TKey, TValue> entries?
C#
.Net
Generics
Collections
C# 3.0
What's the significance of Oct 12 1999?
.Net
asp.net
Cookies
How do I restart my C# WinForm Application?
C#
.Net
Can I pass constructor parameters to Unity's Resolve() method?
C#
.Net
Dependency Injection
Unity Container
Constructor Injection
What is the difference between SqlCommand.CommandTimeout and SqlConnection.ConnectionTimeout?
.Net
Sqlconnection
Sqlcommand
What causing this "Invalid length for a Base-64 char array"
.Net
asp.net
Exception
Viewstate
Is there an easy way to check the .NET Framework version?
C#
.Net
What is lazy initialization and why is it useful?
.Net
What's the difference between a dependency property and an attached property in WPF?
.Net
Wpf
Dependency Properties
Attached Properties
C# ListView Column Width Auto
C#
.Net
Winforms
Listview
Width
How to throw a SqlException when needed for mocking and unit testing?
.Net
asp.net Mvc
Moq
Sqlexception
Intersection of multiple lists with IEnumerable.Intersect()
C#
.Net
Linq
java.lang.IllegalStateException in .NET?
Java
.Net
Exception
Solid FFmpeg wrapper for C#/.NET
C#
.Net
Video
Ffmpeg
Video Processing
Service has zero application (non-infrastructure) endpoints
.Net
Wcf
Exception Handling
Wcf Configuration
Wcf Endpoint
Criteria SpatialRestrictions.IsWithinDistance NHibernate.Spatial
.Net
Nhibernate
Geospatial
Spatial
HTTP 404 when accessing .svc file in IIS
C#
.Net
Wcf
How to get the current ProcessID?
.Net
Process
Should programmers use SSIS, and if so, why?
C#
.Net
Sql Server
Ssis
Fastest way to serialize and deserialize .NET objects
C#
.Net
Serialization
Deserialization
Model-View-Presenter in WinForms
C#
.Net
Winforms
Design Patterns
Mvp
How to check that a uri string is valid
C#
.Net
Uri
How to retrieve actual item from HashSet<T>?
C#
.Net
Hashset
Entity Framework is Too Slow. What are my options?
.Net
Performance
Entity Framework
Orm
Multiply TimeSpan in .NET
C#
.Net
Date
Time
Timespan
System.IO.IOException: "The file exists" when using System.IO.Path.GetTempFileName() - resolutions?
C#
.Net
Split string based on the first occurrence of the character
C#
asp.net
.Net
String
IEnumerable vs IReadonlyCollection vs ReadonlyCollection for exposing a list member
C#
.Net
List
Ienumerable
Encapsulation
Replacing .NET WebBrowser control with a better browser, like Chrome?
C#
.Net
Winforms
Webbrowser Control
ArrayList vs List<> in C#
C#
.Net
List
Generics
Arraylist
What is the difference between "x is null" and "x == null"?
C#
.Net
Null
Pattern Matching
C# 7.0
If strings are immutable in .NET, then why does Substring take O(n) time?
C#
.Net
String
Substring
Time Complexity
The author primary signature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain
.Net
Docker
Ssl
.Net Core
Nuget
Anyone know a good workaround for the lack of an enum generic constraint?
C#
.Net
Enums
Flags
Is a bool read/write atomic in C#
C#
.Net
Concurrency
Locking
Boolean
Difference between the System.Array.CopyTo() and System.Array.Clone()
C#
.Net
Arrays
.Net 2.0
ADO.NET Entity Framework: Update Wizard will not add tables
.Net
Visual Studio-2008
Entity Framework
ado.net
Primary Key
ASP.Net MVC Redirect To A Different View
.Net
asp.net
asp.net Mvc
Set timeout for webClient.DownloadFile()
C#
.Net
Download
Webclient
Global keyboard capture in C# application
.Net
Events
Keyboard Hook
What are the benefits of using C# vs F# or F# vs C#?
C#
.Net
F#
.NET graph library around?
C#
.Net
vb.net
Graph
Getting day suffix when using DateTime.ToString()
C#
.Net
Date
How do I match an entire string with a regex?
C#
.Net
Regex
ConfigurationManager.AppSettings - How to modify and save?
C#
.Net
Appsettings
Configurationmanager
Settings
Remove the title bar in Windows Forms
C#
.Net
Winforms
How Convert VB Project to C# Project
C#
.Net
vb.net
Converter
Sharpdevelop
How do I uninstall "Microsoft .NET Core 1.0.0 RC2 - VS 2015 Tooling Preview 1"?
.Net
Visual Studio
Azure Pipelines-Release-Pipeline
Azure Artifacts
What is obj folder generated for?
C#
.Net
Visual Studio
Build Process
Is it important to unit test a constructor?
C#
.Net
Unit Testing
Constructor
Mirroring console output to a file
C#
.Net
File
Text
Console
Bind to a method in WPF?
.Net
Wpf
Data Binding
Xaml
How can I hide the header of a WPF ListView?
.Net
Wpf
Gridview
Listview
Wpf Controls
Best Practices For Mapping DTO to Domain Object?
.Net
asp.net
Design Patterns
Dto
Ignore namespaces in LINQ to XML
.Net
Xml
Linq
Can't find System.Windows.Media namespace?
C#
.Net
Namespaces
Remove item from list based on condition
C#
.Net
Entity Framework
Linq
C# - approach for saving user settings in a WPF application?
C#
.Net
Wpf
Settings
The case for or against .NET (the beast)
C#
.Net
A generic list of anonymous class
C#
.Net
Generics
Anonymous Types
Unable to start debugging on the web server. Could not start ASP.NET debugging VS 2010, II7, Win 7 x64
asp.net
.Net
Visual Studio-2010
Iis 7
Visual Studio-Debugging
How do I restart a WPF application?
C#
.Net
Wpf
.Net 4.0
How do I do logging in C# without using 3rd party libraries?
C#
.Net
Winforms
Performance
Logging
Logger wrapper best practice
C#
.Net
Logging
Nlog
Unable to convert MySQL date/time value to System.DateTime
.Net
asp.net
Mysql
asp.net 3.5
How to read file using NPOI
C#
.Net
Excel
Npoi
How to compare values of generic types?
C#
.Net
Generics
Icomparable
What is the syntax for a default constructor for a generic class?
C#
.Net
Generics
Error Invalid option '6' for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default
C#
.Net
asp.net Mvc-5.2
.Net 4.6
The library hostpolicy.dll was not found
.Net
.Net Core
Dotnet Cli
Reading a C/C++ data structure in C# from a byte array
C#
.Net
Data Structures
Marshalling
DesignMode with nested Controls
.Net
User Controls
How to compile a .NET application to native code?
.Net
Compilation
Native Code
Simplest way to have a configuration file in a Windows Forms C# application
.Net
Xml
Winforms
Configuration
Change WPF DataTemplate for ListBox item if selected
.Net
Wpf
How to execute an SSIS package from .NET?
C#
.Net
Sql Server
vb.net
Ssis
C# equivalent to Java's Exception.printStackTrace()?
C#
.Net
Exception
Stack Trace
Does a locked object stay locked if an exception occurs inside it?
C#
.Net
Multithreading
Exception
Locking
Combine two (or more) PDF's
C#
.Net
Winforms
Pdf
Why is there no Tree<T> class in .NET?
C#
.Net
Data Structures
IronPython vs. Python .NET
Python
.Net
Ironpython
Cpython
python.net
How to save MailMessage object to disk as *.eml or *.msg file
C#
.Net
Email
Mailmessage
Eml
Find image format using Bitmap object in C#
C#
.Net
Image
XPath and XSLT 2.0 for .NET?
.Net
Xslt
Xpath
How do ValueTypes derive from Object (ReferenceType) and still be ValueTypes?
C#
.Net
Clr
Value Type
Reference Type
Binding objects defined in code-behind
C#
.Net
Wpf
Binding
Is is possible to check if an object is already attached to a data context in Entity Framework?
.Net
Entity Framework
Forms not responding to KeyDown events
C#
.Net
Winforms
How to check if object has been disposed in C#
C#
.Net
Dispose
Find the inner-most exception without using a while loop?
C#
.Net
Exception
Exception Handling
While Loop
Memory address of an object in C#
C#
.Net
MemoryCache does not obey memory limits in configuration
C#
.Net
Caching
Memorycache
Concurrent Dictionary Correct Usage
C#
.Net
Multithreading
.Net 4.0
Concurrency
Why does Math.Round(2.5) return 2 instead of 3?
.Net
Rounding
Passing arguments to C# generic new() of templated type
C#
.Net
Generics
New Operator
MVC4 HTTP Error 403.14 - Forbidden
.Net
asp.net Mvc
asp.net Mvc-4
Iis
Http Status-Code-403
Make HashSet<string> case-insensitive
C#
.Net
Hashset
Implementing a non-terrestrial calendar
C#
.Net
Datetime
Calendar
Error sending json in POST to web API service
C#
asp.net
.Net
Json
asp.net Web-Api
Why is !0 a type in Microsoft Intermediate Language (MSIL)?
C#
.Net
Cil
HttpClient single instance with different authentication headers
C#
.Net
Oauth
Authorization
Dotnet Httpclient
EF Core add-migration Build Failed
.Net
Entity Framework
asp.net Core
.Net Core
Entity Framework-Migrations
No authenticationScheme was specified, and there was no DefaultChallengeScheme found with default authentification and custom authorization
C#
asp.net
.Net
asp.net Core-2.0
Casting: (NewType) vs. Object as NewType
C#
.Net
How to deal with XML in C#
C#
.Net
Xml
Java System.currentTimeMillis() equivalent in C#
C#
Java
.Net
Datetime
Best way to implement multi-language/globalization in large .NET project
C#
.Net
Localization
Multilingual
How can I easily view the contents of a datatable or dataview in the immediate window
C#
.Net
asp.net
Visual Studio
How to define generic type limit to primitive types?
C#
.Net
Generics
Type Constraints
Explanation of Func
C#
.Net
Func
Install Windows Service with Recovery action to Restart
.Net
Windows Services
Service
Using Json.NET converters to deserialize properties
.Net
Serialization
json.net
DataContractSerializer vs XmlSerializer: Pros and Cons of each serializer
.Net
Serialization
Lock-free multi-threading is for real threading experts
C#
.Net
Multithreading
Lock Free
MailMessage, difference between Sender and From properties
.Net
vb.net
Email
system.net.mail
Understanding Covariant and Contravariant interfaces in C#
C#
.Net
Interface
Covariance
Contravariance
Checking if a list of objects contains a property with a specific value
C#
.Net
List
Are nested Try/Catch blocks a bad idea?
.Net
vb.net
Exception Handling
How do I fix a .NET windows application crashing at startup with Exception code: 0xE0434352?
C#
.Net
Winforms
Visual Studio-2010
GridView must be placed inside a form tag with runat="server" even after the GridView is within a form tag
C#
.Net
asp.net
Guid.Parse() or new Guid() - What's the difference?
C#
.Net
Guid
Searching a tree using LINQ
C#
.Net
Linq
Convert Dictionary<string, object> To Anonymous Object?
C#
.Net
Dictionary
Anonymous Types
Read a XML (from a string) and get some fields - Problems reading XML
C#
.Net
Xml
Parsing
Xml Parsing
How do I write one to many query in Dapper.Net?
C#
.Net
Dapper
How to access Session variables and set them in javascript?
Javascript
.Net
Session
How to access Session variables and set them in javascript?
Javascript
.Net
Session
Namespace or Assembly?
C#
.Net
Namespaces
Assemblies
Why is HttpClient BaseAddress not working?
C#
.Net
Dotnet Httpclient
What is the difference between IQueryable<T> and IEnumerable<T>?
.Net
Linq
.Net 3.5
Ienumerable
Iqueryable
Where Is Machine.Config?
.Net
Garbage Collection
Better way to check if a Path is a File or a Directory?
C#
.Net
File
Path
Directory
Best practice for reconnecting SignalR 2.0 .NET client to server hub
C#
.Net
Signalr Hub
signalr.client
Signalr 2
Could not load file or assembly 'System.ValueTuple'
C#
.Net
Dll
C# 7.0
Valuetuple
Error NU1605 Detected package downgrade
.Net
Visual Studio-2017
.Net Core
Nuget
.Net Core-2.0
What's the best way to get the default printer in .NET
.Net
Bypass invalid SSL certificate errors when calling web services in .Net
.Net
Web Services
Sharepoint
How to access the HttpServerUtility.MapPath method in a Thread or Timer?
.Net
asp.net
Timer
Httpcontext
Illustrating usage of the volatile keyword in C#
C#
.Net
Volatile
How can I return a custom HTTP status code from a WCF REST method?
C#
.Net
Wcf
Rest
How do I apply OrderBy on an IQueryable using a string column name within a generic extension method?
C#
.Net
Linq
Entity Framework
Expression Trees
DateTime.Compare how to check if a date is less than 30 days old?
C#
.Net
Datetime
How do I convert an Excel serial date number to a .NET DateTime?
.Net
Excel
Datetime
What is the recommended batch size for SqlBulkCopy?
.Net
Sql Server
Performance
ado.net
How can I specify the latest time of day with DateTime
.Net
Datetime
Get installed applications in a system
C#
.Net
Installation
Why use the C# class System.Random at all instead of System.Security.Cryptography.RandomNumberGenerator?
C#
.Net
Cryptography
Random
Proper naming convention for a .NET Delegate type?
.Net
Delegates
Naming Conventions
Finding all positions of substring in a larger string in C#
C#
.Net
asp.net
String
What is in a DLL and how does it work?
C#
.Net
Dll
Editable ComboBox with binding to value not in list
.Net
Wpf
Combobox
Editing
Clear the Contents of a File
C#
.Net
File
Find type of nullable properties via reflection
C#
.Net
Reflection
Nullable
WebClient.DownloadString results in mangled characters due to encoding issues, but the browser is OK
.Net
Unicode
Utf 8
Webclient
How to remove a single Attribute (e.g. ReadOnly) from a File?
C#
.Net
File
File Attributes
How to specify specific dependency version in nuspec?
C#
.Net
Nuget
Nuget Package
How to set XLSX cell width with EPPlus?
C#
.Net
Epplus
How can I add a hint or tooltip to a label in C# Winforms?
C#
.Net
Winforms
Label
Tooltip
Field vs Property. Optimisation of performance
C#
.Net
Performance
C# 4.0
Optimization
Changing SqlConnection timeout
C#
.Net
Sql Server
Sqlconnection
Should the hash code of null always be zero, in .NET
C#
.Net
Hash
Null
Exception: "URI formats are not supported"
C#
.Net
.Net 4.0
Using lambda expression in place of IComparer argument
C#
.Net
Lambda
Icomparer
Invalid cast from 'System.Int32' to 'System.Nullable`1[[System.Int32, mscorlib]]
C#
.Net
Casting
Type Conversion
Nullable
Deserialize json in a "TryParse" way
C#
.Net
Json
Why are async state machines classes (and not structs) in Roslyn?
C#
.Net
Language Lawyer
Roslyn
Enum "Inheritance"
C#
.Net
Enums
C# getting the path of %AppData%
C#
.Net
Path
Best way to read a large file into a byte array in C#?
C#
.Net
Bytearray
Binary Data
Equivalent of Math.Min & Math.Max for Dates?
.Net
How is Math.Pow() implemented in .NET Framework?
C#
.Net
Pow
Send email from Elmah?
.Net
asp.net
Elmah
How to read a PEM RSA private key from .NET
C#
.Net
Cryptography
Rsa
C# List<> Sort by x then y
C#
.Net
Sorting
Does a List<T> guarantee that items will be returned in the order they were added?
.Net
List
Collections
String.Join vs. StringBuilder: which is faster?
.Net
Performance
String
Stringbuilder
How can I programmatically remove the 2 connection limit in WebClient
.Net
Http
Connection
Webclient
Limit
How can I get all classes within a namespace?
C#
.Net
Reflection
Namespaces
What is a .NET application domain?
.Net
Appdomain
How to make a .NET Windows Service start right after the installation?
.Net
Windows Services
Installation
XML serialization of interface property
C#
.Net
Serialization
How to use the repository pattern correctly?
C#
.Net
asp.net
asp.net Mvc
Repository Pattern
F# List.map equivalent in C#?
C#
.Net
Linq
F#
How to create a System.Drawing.Color from its hexadecimal RGB string?
.Net
Colors
Parsing
Hex
system.drawing.color
C# Thread Termination and Thread.Abort()
C#
.Net
Multithreading
Map two lists into a dictionary in C#
C#
.Net
Linq
Dictionary
Ienumerable
How do I find the size of a 2D array?
C#
.Net
Arrays
Multidimensional Array
Memory allocation: Stack vs Heap?
C#
.Net
Heap Memory
Stack Memory
Determine what control the ContextMenuStrip was used on
C#
.Net
Winforms
Contextmenustrip
Get a TextReader from a Stream?
C#
.Net
Io
Dispatcher.CurrentDispatcher vs. Application.Current.Dispatcher
.Net
Wpf
Dispatcher
Adding CSS class to Html.BeginForm()
.Net
Css
Forms
asp.net Mvc-4
Html Helper
Why is it even possible to change a private member, or run a private method in C# using reflection?
C#
.Net
Reflection
The modulo operator (%) gives a different result for different .NET versions in C#
C#
.Net
Modulo
The model backing the 'ApplicationDbContext' context has changed since the database was created
.Net
asp.net Mvc
Linq
Entity Framework
asp.net Mvc-5
What does the Microsoft.Bcl.Build NuGet package do?
.Net
Nuget
.Net 4.5
What is the ?[]? syntax in C#?
C#
.Net
Null Coalescing-Operator
Nullable Reference-Types
Null Coalescing
How do I remedy "The breakpoint will not currently be hit. No symbols have been loaded for this document." warning?
C#
.Net
Visual Studio
Debugging
Breakpoints
What is a NullReferenceException, and how do I fix it?
C#
.Net
vb.net
Null
Nullreferenceexception
Proper use of the IDisposable interface
C#
.Net
Garbage Collection
Idisposable
Internal vs. Private Access Modifiers
C#
.Net
Private
Access Modifiers
Internal
Why is there no ForEach extension method on IEnumerable?
C#
.Net
vb.net
Extension Methods
When should I use a List vs a LinkedList
C#
.Net
vb.net
Data Structures
Linked List
Storing WPF Image Resources
C#
.Net
Wpf
Embedded Resource
Why can't I use the 'await' operator within the body of a lock statement?
C#
.Net
Async Await
Instantly detect client disconnection from server socket
.Net
C#
Sockets
Tcp
Connection
How to configure log4net programmatically from scratch (no config)
.Net
Logging
Log4net
Why is double.NaN not equal to itself?
C#
.Net
Checking for directory and file write permissions in .NET
C#
.Net
Winforms
Directory
File Permissions
How do I get Bin Path?
C#
.Net
Get size of file on disk
C#
.Net
Filesize
How to know if a DateTime is between a DateRange in C#
C#
.Net
Datetime
Date Range
Convert month int to month name
C#
.Net
Datetime
.Net 4.0
Correct way of using log4net (logger naming)
C#
.Net
Logging
Log4net
Episerver
Why doesn't C# infer my generic types?
C#
.Net
C# 4.0
Type Inference
String Concatenation using '+' operator
C#
.Net
String
How should I remove all elements in a DbSet?
C#
.Net
Entity Framework-4
Differences between .NET 4.0 and .NET 4.5 in High level in .NET
.Net
.Net 4.0
.Net 4.5
When and where to use GetType() or typeof()?
C#
.Net
Types
Typeof
Gettype
What is the best way to catch exception in Task?
C#
.Net
Task Parallel-Library
How can I create a self-signed certificate using C#?
C#
.Net
Certificate
Self Signed
What is POCO in Entity Framework?
C#
.Net
Entity Framework
Poco
Convert DateTime to TimeSpan
C#
.Net
How do I set a number of retry attempts in RabbitMQ?
.Net
Queue
Rabbitmq
Consumer
Using Razor outside of MVC in .NET Core
C#
.Net
Razor
.Net Core
EPPlus number format
C#
asp.net
.Net
Excel
Epplus
In C#, why can't a List<string> object be stored in a List<object> variable
C#
.Net
Generics
Covariance
Type Safety
Finding the variable name passed to a function
C#
asp.net
.Net
Convert dictionary values into array
C#
.Net
Arrays
Generics
Dictionary
C# (.NET) Design Flaws
C#
.Net
.NET Config Files configSource outside the application directory folder
.Net
Configuration
Visual Studio Class Diagram not showing relationships
C#
.Net
Visual Studio
Linq to SQL - Return top n rows
.Net
Linq to-Sql
Environment.GetFolderPath(...CommonApplicationData) is still returning "C:\Documents and Settings\" on Vista
C#
.Net
What is the best way to combine a path and a filename in C#/.NET?
C#
.Net
Path
Filenames
Winforms TableLayoutPanel adding rows programmatically
C#
.Net
Winforms
Runtime
Tablelayoutpanel
Detect if running as Administrator with or without elevated privileges?
C#
.Net
Windows Vista
Uac
User Accounts
What's the correct alternative to static method inheritance?
C#
.Net
Inheritance
Static
Comparison of CI Servers?
.Net
Comparison
Continuous Integration
Resolving MSB3247 - Found conflicts between different versions of the same dependent assembly
.Net
Msbuild
Clr
Ndepend
How to get json response using system.net.webrequest in c#?
C#
.Net
Json
Webrequest
Set global hotkeys using C#
C#
.Net
Hotkeys
What is wrong with ToLowerInvariant()?
C#
.Net
.Net 4.0
When will ConcurrentDictionary TryRemove return false
C#
.Net
Concurrency
How to filter Directory.EnumerateFiles with multiple criteria?
C#
.Net
How to store images using Entity Framework Code First CTP 5?
.Net
Entity Framework
Sql Server-2008
Ef Code-First
Binding ItemsSource of a ComboBoxColumn in WPF DataGrid
.Net
Wpf
Binding
Wpfdatagrid
Datagridcomboboxcolumn
Way to have String.Replace only hit "whole words"
C#
.Net
vb.net
String
Should I bind to ICollectionView or ObservableCollection
C#
.Net
Wpf
Data Binding
Mvvm
What is the difference between the override and new keywords in C#?
C#
.Net
Oop
string.Empty vs null.Which one do you use?
C#
.Net
Null
String
How to tell Json.Net globally to apply the StringEnumConverter to all enums
C#
.Net
Json
json.net
Remove last characters from a string in C#. An elegant way?
C#
.Net
String
Is it a good practice to have logger as a singleton?
C#
.Net
Logging
Dependency Injection
Singleton
Why did I get the compile error "Use of unassigned local variable"?
C#
.Net
Access to foreach variable in closure warning
C#
.Net
Is it possible to run a .NET 4.5 app on XP?
C#
.Net
.Net 4.0
Compatibility
.Net 4.5
Could not load file or assembly 'Antlr3.Runtime (1)' or one of its dependencies
.Net
asp.net Mvc
How can I prevent synchronous continuations on a Task?
C#
.Net
Task Parallel-Library
Task
Async Await
Visual studio long compilation when replacing int with double
C#
.Net
Visual Studio
Debugging
Visual Studio-2013
Can you develop Linux applications with Xamarin?
C#
.Net
Linux
Xamarin
Mono
What's the difference between the .NET Framework SDK and the Targeting pack
.Net
Visual Studio
What is the best choice for .NET inter-process communication?
C#
.Net
Process
Ipc
'using' statement vs 'try finally'
C#
.Net
Multithreading
Using Statement
How to properly and completely close/reset a TcpClient connection?
C#
.Net
Tcp
How to elevate privileges only when required?
C#
.Net
Windows Vista
Uac
Privileges
What does beforefieldinit flag do?
.Net
Cil
What is the best implementation for AOP in .Net?
.Net
Aop
What are the benefits of resource(.resx) files?
C#
.Net
vb.net
Resx
What's the risk of deploying debug symbols (pdb file) in a production environment?
.Net
Security
Production
Debug Symbols
How to convert string to integer in C#
C#
.Net
String
Int
Type Conversion
.Net regex: what is the word character \w?
C#
.Net
Regex
Reminder - \r\n or \n\r?
.Net
Windows
Ascii
Passing a single item as IEnumerable<T>
C#
.Net
Generics
Ienumerable
Force XmlSerializer to serialize DateTime as 'YYYY-MM-DD hh:mm:ss'
C#
.Net
Xml Serialization
How can I pass a parameter in Action?
C#
.Net
Action
Why are operators so much slower than method calls? (structs are slower only on older JITs)
C#
.Net
Performance
Optimization
Jit
How to add comments into a Xaml file in WPF?
C#
.Net
Wpf
Xaml
Comments
How to check that Request.QueryString has a specific value or not in ASP.NET?
C#
asp.net
.Net
The type or namespace name 'Entity' does not exist in the namespace 'System.Data'
C#
asp.net
.Net
Web Services
Entity Framework-4.1
Await a Async Void method call for unit testing
C#
.Net
Unit Testing
Async Await
What is ToString("N0") format?
C#
.Net
Number Formatting
CryptographicException was unhandled: System cannot find the specified file
C#
.Net
X509certificate
Cryptographicexception
IIS Config Error - This configuration section cannot be used at this path
asp.net
.Net
Web Config
Iis 8
Applicationhost
Bug in Microsoft's internal PriorityQueue<T>?
C#
.Net
Priority Queue
Why is code behavior different in release & debug mode?
C#
.Net
.Net Core
Coreclr
Horrible redraw performance of the DataGridView on one of my two screens
.Net
Winforms
Performance
Datagridview
Nvidia
SQL Identity (autonumber) is Incremented Even with a Transaction Rollback
.Net
Sql
Sql Server-2005
Transactions
Identity Column
How to install a windows service programmatically in C#?
C#
.Net
Windows Services
Setup Project
Visual Studio-Setup-Proje
Expression trees for dummies?
C#
.Net
Linq
Expression Trees
How to determine if a string is a valid IPv4 or IPv6 address in C#?
C#
.Net
Ip Address
Cucumber alternative for .NET
.Net
Cucumber
Should one interface inherit another interface
.Net
Oop
Inheritance
How big is an object reference in .NET?
C#
.Net
Reference
What's the difference between Invoke() and BeginInvoke()
C#
.Net
Multithreading
Invoke
Begininvoke
How to get temporary folder for current user
C#
.Net
Temporary Directory
What is the string length of a GUID?
.Net
Guid
Varchar
Sql Types
String Length
When is ReaderWriterLockSlim better than a simple lock?
C#
.Net
Multithreading
Locking
MemoryStream.Close() or MemoryStream.Dispose()
C#
.Net
Garbage Collection
Is there a Linq method to add a single item to an IEnumerable<T>?
C#
.Net
Ienumerable
ILookup interface vs IDictionary
C#
.Net
How do I get the XML SOAP request of an WCF Web service request?
C#
.Net
Xml
Wcf
Soap
Find() and First() throws exceptions, how to return null instead?
C#
.Net
Linq
Lambda
How to convert WebResponse.GetResponseStream return into a string?
C#
.Net
String
Httpwebresponse
Draw solid color triangle using XAML only
.Net
Wpf
Xaml
Draw
Is it possible to write a JIT compiler (to native code) entirely in a managed .NET language
C#
.Net
F#
Jit
Unit testing C# protected methods
C#
.Net
Unit Testing
Protected
Could not load file or assembly 'DotNetOpenAuth.Core
C#
asp.net
.Net
asp.net Mvc
asp.net Mvc-4
My C# application is returning 0xE0434352 to Windows Task Scheduler but it is not crashing
C#
.Net
Scheduled Tasks
Task
v11.0\WebApplications\Microsoft.WebApplication.targets was not found when file actually references v10
asp.net
.Net
Visual Studio-2010
Visual Studio-2008
Visual Studio-2012
How to build a Url?
C#
.Net
Visual Studio 2017 & 2019 highlight occurrences of selected word in scrollbar
.Net
Visual Studio-2017
Highlight
Visual Studio-2019
dotnet restore warning NU1701
C#
.Net
Nuget
.Net Core
Any decent C# profilers out there?
C#
.Net
Profiling
Profiler
Differences between MSIL and Java bytecode?
Java
.Net
Bytecode
Cil
How do I convert a System.Type to its nullable version?
C#
.Net
Prevent Visual Studio from automatically creating "Mixed Platforms" solution configuration
.Net
Visual Studio
How do I do a deep copy of an element in LINQ to XML?
.Net
Linq to-Xml
Extracting Path from OpenFileDialog path/filename
C#
.Net
Parsing
Path
What's the best way to calculate the size of a directory in .NET?
C#
.Net
Windows
Override Authorize Attribute in ASP.NET MVC
.Net
asp.net Mvc
Security
Authentication
Authorize
Iif equivalent in C#
C#
.Net
Conditional Operator
Iif Function
What does POCO mean?
.Net
Poco
Read XML Attribute using XmlDocument
C#
.Net
Xml
Xmldocument
Equivalent to C#'s "using" keyword in powershell?
.Net
Powershell
Powershell 2.0
What is the difference between boxing/unboxing and type casting?
.Net
Casting
Boxing
Unboxing
file exists by file name pattern
C#
.Net 2.0
.Net
A difference in style: IDictionary vs Dictionary
C#
Java
.Net
Interface
When to use abstract classes?
C#
.Net
Abstract Class
How to get a MemoryStream from a Stream in .NET?
C#
.Net
File Io
Stream
Memorystream
Why are some object properties UnaryExpression and others MemberExpression?
.Net
Linq
Linq Expressions
How to use XPath with XElement or LINQ?
.Net
Xml
Xpath
Linq to-Xml
Xelement
Which passwordchar shows a black dot (•) in a winforms textbox?
C#
.Net
Winforms
Textbox
How to get Xml as string from XDocument?
C#
.Net
Xml
String
Linq to-Xml
Plain Old CLR Object vs Data Transfer Object
C#
.Net
Poco
Dto
How do I get the last day of a month?
C#
.Net
Datetime
Set System.Drawing.Color values
C#
.Net
Colors
Immutability
system.drawing.color
String.Replace() vs. StringBuilder.Replace()
C#
.Net
.Net 4.0
Replace
How to get only filenames within a directory using c#?
C#
.Net
Get the .NET assembly's AssemblyInformationalVersion value?
C#
.Net
Cannot Inject Dependencies into ASP.NET Web API Controller using Unity
C#
.Net
asp.net Web-Api
Unity Container
Error - The transaction associated with the current connection has completed but has not been disposed
C#
.Net
Sql Server-2008
C# 4.0
Simplest way to form a union of two lists
C#
.Net
Linq
List
Union
Difference between destructor, dispose and finalize method
C#
.Net
Destructor
Dispose
Finalize
How to share the same Resharper settings between multiple solutions, with no manual intervention?
.Net
Visual Studio
Tfs
Resharper
Solution
How can I make my managed NuGet package support C++/CLI projects?
.Net
Dll
C++ Cli
Nuget
Nuget Package
Compilation Error: The type 'ASP.global_asax' exists in both DLLs
C#
asp.net
.Net
Dll
How do I allow assembly (unit testing one) to access internal properties of another assembly?
.Net
Unit Testing
How to inject Javascript in WebBrowser control?
C#
Javascript
.Net
Winforms
Webbrowser Control
With block equivalent in C#?
C#
.Net
vb.net
using FUSLOGVW.EXE on a machine with no Visual Studio installed
.Net
Assembly Resolution
Fusion Log-Viewer
Correct Way to Load Assembly, Find Class and Call Run() Method
C#
.Net
Reflection
When is a custom attribute's constructor run?
C#
.Net
vb.net
Constructor
Attributes
Is there a way to return Anonymous Type from method?
C#
.Net
Anonymous Types
C# testing to see if a string is an integer?
C#
.Net
String
Integer
How do I safely cast a System.Object to a `bool` in C#?
C#
.Net
Casting
Return StreamReader to Beginning
C#
.Net
VB.NET equivalent of C# "As"
.Net
vb.net
How can I protect my .NET assemblies from decompilation?
C#
.Net
Decompiling
Reflector
Visual Studio ASP.Net MVC undo set as start page action
.Net
asp.net
asp.net Mvc
Visual Studio
Deciphering the .NET clr20r3 exception parameters P1..P10
.Net
Exception
Clr
Can I split an IEnumerable into two by a boolean criteria without two queries?
C#
.Net
Linq
C# - how do you stop a timer?
C#
.Net
Timer
Listen to changes of dependency property
C#
.Net
Wpf
Events
Dependency Properties
WCF Service Client: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding
C#
.Net
Wcf
Web Services
What are Automatic Properties in C# and what is their purpose?
C#
.Net
Syntax
Properties
Automatic Properties
Open Source Alternatives to Reflector?
.Net
Reflection
Open Source
Reflector
What's the difference between .NET Core, .NET Framework, and Xamarin?
.Net
Xamarin
.Net Core
C# - Making a Process.Start wait until the process has start-up
C#
.Net
Windows
Process
Command for WPF TextBox that fires up when we hit Enter Key
C#
.Net
Wpf
Icommand
How to dispose TransactionScope in cancelable async/await?
C#
.Net
Database
Transactions
Async Await
How to create a style based on default style?
.Net
Wpf
Xaml
Silverlight
The "&" character breaks passwords that are stored in the web.config
C#
asp.net
.Net
asp.net Mvc
Configuration
What does mscorlib stand for?
C#
.Net
How to set null value to int in c#?
C#
.Net
Null
Int
Nullable
Why use ImmutableList over ReadOnlyCollection?
C#
.Net
Immutable Collections
Difference between ASP.NET Core (.NET Core) and ASP.NET Core (.NET Framework)
C#
.Net
asp.net Core
.Net Core
Adding scripting functionality to .NET applications
C#
.Net
Scripting
Compiler Construction
How to Disable Alt + F4 closing form?
C#
.Net
Winforms
Open a URL from Windows Forms
.Net
Winforms
"The operation is not valid for the state of the transaction" error and transaction scope
C#
.Net
Sql Server
Transactions
Transactionscope
What does "T" mean in C#?
C#
.Net
Generics
Is there a WPF Cheat Sheet available?
.Net
Wpf
Xaml
Double.TryParse or Convert.ToDouble - which is faster and safer?
C#
.Net
Parsing
Double
I don't understand Application Domains
.Net
Appdomain
ASP.NET MVC - Getting QueryString values
.Net
asp.net
asp.net Mvc
Thoughts on foreach with Enumerable.Range vs traditional for loop
C#
.Net
C# 3.0
For Loop
Interlocked and volatile
C#
.Net
Mono
Deserializing empty xml attribute value into nullable int property using XmlSerializer
.Net
Xml
Serialization
Nullable
Good example of Reactive Extensions Use
C#
.Net
system.reactive
What is the difference between System.Speech.Recognition and Microsoft.Speech.Recognition?
.Net
Speech Recognition
Speech
ucma2.0
Ucs
Referencing 2 different versions of log4net in the same solution
.Net
Nhibernate
Dll
Log4net
What does .NET's String.Normalize do?
.Net
String
Floating point comparison functions for C#
C#
.Net
Floating Point
Create multiple threads and wait for all of them to complete
C#
.Net
Multithreading
What interfaces do all arrays implement in C#?
C#
.Net
Arrays
Interface Implementation
Why does a System.Timers.Timer survive GC but not System.Threading.Timer?
.Net
Timer
Garbage Collection
What can I use for good quality code coverage for C#/.NET?
C#
.Net
Code Coverage
How do I make calls to a REST API using C#?
C#
.Net
Rest
.Net 4.5
There's no @Html.Button !
.Net
asp.net Mvc-3
Razor
Html Helper
Htmlbutton
Multiple added entities may have the same primary key
C#
.Net
Entity Framework
How to make a Generic Type Cast function
C#
.Net
Generics
Test with NO expected exception
C#
.Net
Unit Testing
Testing
Nunit
Non-Generic TaskCompletionSource or alternative
C#
.Net
Async Await
How to directly execute SQL query in C#?
C#
.Net
Sql Server
Batch File
Package version is always 1.0.0 with dotnet pack
.Net
Visual Studio
Tfs
Msbuild
.Net Core
What is the best way to lock cache in asp.net?
C#
.Net
asp.net
Caching
Populating a list of integers in .NET
C#
.Net
List
Integer
Is there a serializable generic Key/Value pair class in .NET?
C#
.Net
Keyboard shortcut to close all tabs but current one in Visual Studio?
.Net
Visual Studio
Resharper
How to list all month names, e.g. for a combo?
C#
asp.net
.Net
Datetime
Retrieving Dictionary Value Best Practices
C#
.Net
Dictionary
How do I serialize an enum value as an int?
.Net
Enums
Xml Serialization
Looking for a Command Line Argument Parser for .NET
C#
.Net
Command Line
Arguments
Should I use two "where" clauses or "&&" in my LINQ query?
C#
.Net
Linq
Determine if ASP.NET application is running locally
.Net
asp.net
Localhost
Distinction between iterator and enumerator
C#
.Net
Iterator
Generator
Enumeration
Parameter naming: filename or fileName?
.Net
Naming Conventions
Naming
Fxcop
.NET Events - What are object sender & EventArgs e?
.Net
Events
Event Handling
Ignoring a field during .NET JSON serialization; similar to [XmlIgnore]?
C#
.Net
asp.net Mvc
Json
Serialization
How to change symbol for decimal point in double.ToString()?
C#
.Net
Double
Tostring
Should we always include a default constructor in the class?
C#
.Net
Clr
Default Constructor
Inheriting XML comments from interfaces in C#
C#
.Net
Visual Studio-2010
ObservableCollection<> vs. List<>
C#
.Net
Wpf
WPF MVVM: How to close a window
C#
.Net
Wpf
Xaml
Mvvm
What do programmers mean when they say, "Code against an interface, not an object."?
C#
.Net
Tdd
Inversion of-Control
How does SQLParameter prevent SQL Injection?
.Net
Sql Server
Security
How to check if object is an array of a certain type?
C#
.Net
Arrays
Reflection
Types
VB.NET vs C# integer division
C#
.Net
vb.net
Operators
Division
Does Dapper support SQL 2008 Table-Valued Parameters?
.Net
Dapper
How to get index using LINQ?
C#
.Net
Linq
C# 3.0
Task vs Thread differences
C#
.Net
Multithreading
Task
URL Encoding using C#
C#
.Net
Urlencode
Is there an easy way to return a string repeated X number of times?
C#
.Net
Found conflicts between different versions of the same dependent assembly that could not be resolved
.Net
Visual Studio
Msbuild
Visual Studio-Express
Difference between ref and out parameters in .NET
C#
.Net
Why is JsonRequestBehavior needed?
C#
.Net
asp.net Mvc
asp.net Mvc-3
Security
How to remove a ConnectionString using Config Transformations
C#
.Net
Visual Studio
Web Config
Web Config-Transform
.net Custom Configuration How to case insensitive parse an enum ConfigurationProperty
C#
.Net
Configurationproperty
X509Certificate Constructor Exception
C#
.Net
X509certificate
String.Format - how it works and how to implement custom formatstrings
C#
.Net
vb.net
String
String Formatting
How to Async Files.ReadAllLines and await for results?
C#
.Net
Asynchronous
Async Await
C# 5.0
How to set time to midnight for current day?
C#
.Net
Two output file names resolved to the same output
C#
.Net
Winforms
Where can I find unit tests for regular expressions in multiple languages?
Java
Php
Javascript
.Net
Regex
Convert string to hex-string in C#
C#
.Net
String
Hex
Practical difference between List and IEnumerable
C#
.Net
List
Ienumerable
Reference type in C#
C#
.Net
Pointers
MEF with MVC 4 or 5 - Pluggable Architecture (2014)
C#
asp.net
.Net
asp.net Mvc
Mef
Is returning IList<T> worse than returning T[] or List<T>?
C#
.Net
Interface
Abstraction
Find the next TCP port in .NET
C#
.Net
Wcf
Networking
Tcp
How does WCF deserialization instantiate objects without calling a constructor?
C#
.Net
Wcf
Reflection
Serialization
What is the "cost" of .NET reflection?
C#
.Net
Optimization
Reflection
What's the use of System.String.Copy in .NET?
.Net
String
Copy
Immutability
When should copy-local be set to true and when should it not?
.Net
Msbuild
Reference
Copy Local
Cast received object to a List<object> or IEnumerable<object>
C#
.Net
How to Consume WCF Service with Android
.Net
Android
Wcf
Rest
How can I run another application within a panel of my C# program?
C#
.Net
Windows
Winforms
Exe
What is the role of public key token?
C#
.Net
trim all strings in an array
C#
.Net
Arrays
Trim
best way to clear contents of .NET's StringBuilder
C#
.Net
Optimization
.Net 3.5
A list of Entity Framework providers for various databases
.Net
Database
Entity Framework
Orm
Convert.ToBoolean and Boolean.Parse don't accept 0 and 1
.Net
Boolean
How to store data locally in .NET (C#)
C#
.Net
Xml
Data Storage
How can I compare (directory) paths in C#?
C#
.Net
Path
Filesystems
How do I get .NET's Path.Combine to convert forward slashes to backslashes?
C#
.Net
In c# convert anonymous type into key/value array?
C#
.Net
Httpwebrequest
Anonymous Types
How can I print the contents of an array horizontally?
C#
.Net
Arrays
Is there a “free” alternative to .NET Reflector?
.Net
Open Source
Reflector
How to remove all event handlers from an event
C#
.Net
Winforms
Events
How to do SQL Like % in Linq?
.Net
Linq
Tsql
Linq to-Entities
Sql Like
Easiest way to read from and write to files
C#
.Net
String
File
File Io
Could you explain STA and MTA?
.Net
Multithreading
Com
Apartments
In .NET, which loop runs faster, 'for' or 'foreach'?
C#
.Net
Performance
For Loop
Use of Finalize/Dispose method in C#
C#
.Net
Idisposable
Finalizer
Cannot delete directory with Directory.Delete(path, true)
C#
.Net
Exception
Io
How do I use OpenFileDialog to select a folder?
C#
.Net
Winforms
Dialog
Openfiledialog
How to convert a column of DataTable to a List
C#
.Net
List
Datatable
Trim string from the end of a string in .NET - why is this missing?
C#
.Net
String
How to grant full permission to a file created by my application for ALL users?
C#
.Net
Winforms
Permissions
User Accounts
Mono on Raspberry Pi
.Net
Linux
Mono
Arm
Raspberry Pi
Serialize Property as Xml Attribute in Element
C#
.Net
Xml
Xml Serialization
How do I test an async method with NUnit (or possibly with another framework)?
.Net
Unit Testing
Asynchronous
Nunit
Async Await
Using delegates in C#
C#
.Net
Delegates
double? = double? + double?
C#
.Net
Cannot find Assert.Fail and Assert.Pass or equivalent
.Net
xunit.net
ASP.NET Core equivalent of ASP.NET MVC 5's HttpException
C#
.Net
asp.net Core
asp.net Core-Mvc
Httpexception
Build .exe file in .NET Core RC2
.Net
asp.net Core
.Net Core
package.json
.Net Core-Rc2
How to return multiple values in C# 7?
C#
.Net
C# 7.0
Can you catch a native exception in C# code?
C#
.Net
Exception
How to use Reflection to Invoke an Overloaded Method in .NET
.Net
Reflection
.Net 2.0
Invoke
Overloading
.NET How to check if path is a file and not a directory?
.Net
File
Directory
Adding line breaks to comments for Intellisense
.Net
Intellisense
Code Documentation
Checking for null before ToString()
C#
.Net
String
Properties
Conversion from List<T> to array T[]
C#
.Net
Arrays
Linq
List
Why is there no need for Maven in .NET?
.Net
Maven 2
Build Process
Build
Build Automation
Is there a way of setting a property once only in C#
C#
.Net
What version of .NET ships with what version of Windows?
.Net
Windows
Version
.Net Framework-Version
Compiling C# to Native?
C#
.Net
Compiler Construction
Native
String.Split only on first separator in C#?
C#
.Net
String
Any good implementation of Actors for C#?
C#
.Net
Concurrency
Actor
Is it possible to change a Winforms combobox to disable typing into it?
C#
.Net
Winforms
Tips for optimizing C#/.NET programs
C#
.Net
Optimization
Why do we need a private constructor?
C#
.Net
asp.net
Reading CSV file and storing values into an array
C#
.Net
Arrays
Csv
Method can be made static, but should it?
C#
.Net
Refactoring
Resharper
Static Methods
When & why to use delegates?
C#
.Net
Delegates
Which version of MVC am I using?
.Net
asp.net Mvc
Visual Studio
Version
How to set only time part of a DateTime variable in C#
C#
.Net
Datetime
static destructor
C#
.Net
C#'s equivalent of Java's <? extends Base> in generics
C#
.Net
Generics
Inheritance
Extends
When to use pointers in C#/.NET?
C#
.Net
Performance
Pointers
Unsafe
Escape command line arguments in c#
C#
.Net
Command Line-Arguments
Why does Interlocked.Exchange not support Boolean type?
C#
.Net
Multithreading
The variable 'MyException' is declared but never used
C#
.Net
Exception
Frameworks
Ambiguity
splitting a string based on multiple char delimiters
C#
.Net
String
Split
C# optional parameters on overridden methods
C#
.Net
Overriding
Optional Parameters
Which is faster: clear collection or instantiate new
.Net
Performance
List
Optimization
Collections
Generate a unique id
C#
asp.net
.Net
Uniqueidentifier
Await operator can only be used within an Async method
C#
.Net
Build
.Net 4.5
Async Await
DateTime.TryParseExact() rejecting valid formats
C#
.Net
Cultureinfo
Cannot attach the file *.mdf as database
.Net
asp.net Mvc
Database
Entity Framework
asp.net Mvc-4
Mocking generic methods in Moq without specifying T
C#
.Net
Generics
Mocking
Moq
Are C# properties actually Methods?
C#
.Net
Oop
What is NuGetPackageImportStamp for?
.Net
Msbuild
Nuget
Csproj
Cannot install Windows SDK 7.1 on Windows 10
.Net
Visual Studio-2010
Windows 10
What's the difference between the new netstandardapp and netcoreapp TFMs?
C#
.Net
Nuget
asp.net Core
.Net Core
Add client certificate to .NET Core HttpClient
C#
.Net
asp.net Core
.Net Core
Dotnet Httpclient
Avoiding first chance exception messages when the exception is safely handled
C#
.Net
Exception
What does "DateTime?" mean in C#?
C#
.Net
Datetime
Syntax
Nullable
How to serialize an Exception object in C#?
C#
.Net
Exception
Serialization
implicit vs explicit interface implementation
C#
.Net
Interface
Does HashSet preserve insertion order?
.Net
Hashset
What is the generic version of a Hashtable?
C#
.Net
Generics
Should a property have the same name as its type?
C#
.Net
Naming Conventions
C#: Get complete desktop size?
C#
.Net
Desktop
Screen
Screen Resolution
.net service bus recommendations?
C#
.Net
Distributed
Messaging
Servicebus
Calling the base constructor in C#
C#
.Net
Inheritance
Constructor
How to loop through all enum values in C#?
C#
.Net
Enums
Language Features
Getting full URL of action in ASP.NET MVC
C#
.Net
asp.net Mvc
Url Routing
Why are C# 4 optional parameters defined on interface not enforced on implementing class?
C#
.Net
C# 4.0
Interface
Optional Parameters
How to print the current Stack Trace in .NET without any exception?
C#
.Net
Logging
Stack Trace
Printstacktrace
How to declare a local variable in Razor?
C#
.Net
asp.net Mvc
asp.net Mvc-3
Razor
Do zombies exist ... in .NET?
C#
.Net
Multithreading
Load
Zombie Process
Handling warning for possible multiple enumeration of IEnumerable
C#
.Net
Performance
Resharper
Which .NET Dependency Injection frameworks are worth looking into?
C#
.Net
Dependency Injection
Inversion of-Control
Can you call Directory.GetFiles() with multiple filters?
C#
Filesystems
.Net
Find and extract a number from a string
C#
.Net
Regex
String
Performance of calling delegates vs methods
C#
.Net
Performance
Delegates
How to iterate through Dictionary and change values?
.Net
Dictionary
C# 3.0
Analogues of Java and .NET technologies/frameworks
Java
.Net
Comparison
How to exit all running threads?
C#
.Net
Winforms
Multithreading
IUnityContainer.Resolve<T> throws error claiming it cannot be used with type parameters
C#
.Net
Generics
Unity Container
Compilation
How do you remove all the alphabetic characters from a string?
C#
.Net
Converting double to string with N decimals, dot as decimal separator, and no thousand separator
C#
.Net
String
Double
Decimal
Are there .NET implementation of TLS 1.2?
.Net
Ssl
Int to byte array
C#
.Net
Bytearray
Int32
How to troubleshoot a VSTO addin that does not load?
.Net
Vsto
Outlook Addin
ASP.NET MVC Global Variables
C#
.Net
asp.net
asp.net Mvc
Global Variables
C# compiling for 32/64 bit, or for any cpu?
.Net
Assemblies
64 Bit
32bit 64bit
Anycpu
Add scheme to URL if needed
C#
.Net
Uri
Generate C# classes from JSON Schema
.Net
Wcf
Json
Jsonschema
How to add New Column with Value to the Existing DataTable?
C#
asp.net
.Net
Visual Studio-2008
Datatable
How to create/make rounded corner buttons in WPF?
.Net
Wpf
Button
Styles
Wpf Controls
Turn a simple C# DLL into a COM interop component
C#
.Net
Com
Interop
Com Interop
What is SUT and where did it come from?
C#
.Net
Unit Testing
Terminology
Naming
Static code blocks
C#
.Net
Static
How do you debug MVC 4 API routes?
C#
.Net
asp.net Mvc
Rest
asp.net Mvc-4
How to rename a database column in Entity Framework 5 Code First migrations without losing data?
C#
.Net
Entity Framework
Entity Framework-5
Mock an update method returning a void with Moq
C#
.Net
Mocking
Moq
How to make String.Contains case insensitive?
C#
.Net
vb.net
String
Case Insensitive
How to combine || operators in condition statement
C#
.Net
Error 1053 the service did not respond to the start or control request in a timely fashion
C#
.Net
Timer
Windows Services
Operator overloading ==, !=, Equals
C#
.Net
Compiler Errors
Operator Overloading
What's the difference between ASP.NET 5, .NET Core, and ASP.NET Core 5?
asp.net
.Net
asp.net Core
.Net Core
MSBUILD throws error: The SDK 'Microsoft.NET.Sdk' specified could not be found
C#
.Net
Msbuild
.Net Core
Total number of items defined in an enum
C#
.Net
Enums
Best way to update LINQ to SQL classes after database schema change
C#
.Net
Linq to-Sql
HRESULT: 0x80131040: The located assembly's manifest definition does not match the assembly reference
.Net
Nunit
Ncover
Log4Net: set Max backup files on RollingFileAppender with rolling Date
.Net
Log4net
InternalsVisibleTo attribute isn't working
.Net
Attributes
Internalsvisibleto
Most efficient way to get default constructor of a Type
C#
.Net
Reflection
.NET - What's the best way to implement a "catch all exceptions handler"
C#
.Net
Exception
Exception Handling
Making a generic property
C#
.Net
Generics
Properties
msbuild, defining Conditional Compilation Symbols
.Net
Msbuild
Compiler Options
StringWriter or StringBuilder
.Net
Stringbuilder
Stringwriter
Operator Overloading with Interface-Based Programming in C#
C#
.Net
Operator Overloading
Equals
Image vs Bitmap class
C#
.Net
Image
Bitmap
Change desktop wallpaper using code in .NET
C#
.Net
Wpf
Desktop
Wallpaper
How do You Create a Read-Only Dependency Property?
.Net
Wpf
Dependency Properties
Entity Framework - Cannot convert lambda expression to type 'string' because it is not a delegate type
C#
.Net
Entity Framework
Lambda
How to pass the UI Dispatcher to the ViewModel
.Net
Wpf
Mvvm
Dispatcher
What determines the return value of Path.GetTempPath()?
C#
.Net
Environment Variables
Special Folders
Read the value of an attribute of a method
C#
.Net
Reflection
Attributes
Methods
Use of String.Format in JavaScript?
C#
.Net
Javascript
The remote server returned an error: (407) Proxy Authentication Required
C#
.Net
Proxy Authentication
Http Status-Code-407
machine.config
Is there a built-in Binary Search Tree in .NET 4.0?
C#
.Net
Binary Tree
"Register for COM Interop" vs "Make assembly COM visible"
.Net
Visual Studio
Com Interop
Compiler Options
Is String a primitive type?
C#
.Net
vb.net
String
Primitive Types
Where does Microsoft.Practices.ServiceLocation come from?
.Net
Enterprise Library
Overhead of try/finally in C#?
C#
.Net
Performance
Try Finally
What is the point of DBNull?
.Net
Dbnull
How can I use NuGet with Visual C# Express?
.Net
Visual Studio-Express
Nuget
How to stop BackgroundWorker correctly
C#
.Net
Winforms
Backgroundworker
How to select an item in a ListView programmatically?
C#
.Net
Winforms
Listview
Selection
DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") is returning AM time instead of PM time?
.Net
Datetime
Why is LINQ .Where(predicate).First() faster than .First(predicate)?
C#
.Net
Performance
Linq
What is [DllImport("QCall")]?
.Net
Dllimport
Internals
Why method overloading is not allowed in WCF?
C#
.Net
Wcf
Overloading
Messagebox with input field
C#
.Net
Httplistener with HTTPS support
.Net
X509certificate
Httplistener
Handling 'Sequence has no elements' Exception
C#
.Net
Linq
Entity Framework
ado.net
No MediaTypeFormatter is available to read an object of type 'String' from content with media type 'text/plain'
C#
.Net
asp.net Mvc
Json
Httpclient
What is the maximum number of parameters that a C# method can be defined as taking?
C#
.Net
Clr
What is a replacement method for Task.Run in .NET 4.0 using C#?
C#
.Net
Asynchronous
Task Parallel-Library
Why does a recursive call cause StackOverflow at different stack depths?
C#
.Net
Stack Overflow
Jit
Tail Recursion
What is a method group in C#?
C#
.Net
Method Group
Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.1.0.0
.Net
Visual Studio-2017
.Net Standard
.Net Standard-1.4
.net: System.Web.Mail vs System.Net.Mail
.Net
.Net 2.0
What is the difference between myCustomer.GetType() and typeof(Customer) in C#?
C#
.Net
Is there an embeddable Webkit component for Windows / C# development?
.Net
Com
Webkit
Gecko
Redirect Trace output to Console
.Net
vb.net
.Net 2.0
Console
Trace
Why do C# multidimensional arrays not implement IEnumerable<T>?
C#
.Net
Arrays
Multidimensional Array
How to wait until remote .NET debugger attached
.Net
Debugging
Breakpoints
Remote Debugging
Getting the .NET Framework directory path
C#
.Net
Frameworks
Directory
How to find what state ManualResetEvent is in?
.Net
Multithreading
Locking
How to open an Excel file in C#?
C#
.Net
Excel
Vsto
How to log Trace messages with log4net?
C#
.Net
Log4net
How to use web.config when unit testing an asp .net application
.Net
asp.net
Unit Testing
ASP.NET Custom Validator Client side & Server Side validation not firing
C#
.Net
asp.net
Validation
Customvalidator
How can I Convert HTML to Text in C#?
C#
Html
.Net
Parsing
Text
What is the purpose of Decimal.One, Decimal.Zero, Decimal.MinusOne in .Net
C#
.Net
vb.net
Decimal
Constants
Large WCF web service request failing with (400) HTTP Bad Request
C#
.Net
Wcf
Web Services
Serializing private member data
C#
.Net
Xml
Serialization
Serializable
.NET equivalent of the old vb left(string, length) function
C#
.Net
vb.net
How do I tell if a type is a "simple" type? i.e. holds a single value
C#
.Net
Generics
Any way to override .NET Windows Service Name without recompiling?
.Net
Windows Services
Simple description of worker and I/O threads in .NET
.Net
Multithreading
Iocp
Simple Delegate (delegate) vs. Multicast delegates
C#
.Net
Delegates
Multicastdelegate
What is the difference between File.ReadAllLines() and File.ReadAllText()?
C#
File
.Net
file.readalllines
What is the best OAuth2 C# library?
C#
.Net
asp.net
.Net 3.5
Oauth
How do I get the Array Item Type from Array Type in .net
.Net
Reflection
Types
"On Exit" for a Console Application
C#
.Net
How does extern work in C#?
C#
.Net
Performance
Extern
Modifier
How can I right-align text in a DataGridView column?
.Net
Winforms
Datagridview
Datagridviewcolumn
What is marshalling? What is happening when something is "marshalled?"
.Net
Multithreading
Marshalling
Definition
Language Interoperability
Linq Query Group By and Selecting First Items
C#
.Net
Linq
How do I use a dump file to diagnose a memory leak?
.Net
Visual Studio-2010
Memory Leaks
Crash Dumps
Memory Profiling
How to compare DateTime without time via LINQ?
C#
.Net
Linq
Datetime
How to disable cascade delete for link tables in EF code-first?
C#
.Net
Database
Entity Framework
Ef Code-First
Json.NET serialize object with root name
C#
asp.net
.Net
Json
json.net
To use a read-only property or a method?
C#
.Net
Class
Methods
Properties
Why is dictionary so much faster than list?
C#
.Net
Performance
Default parameter for value must be a compile time constant?
C#
.Net
Parameters
How to truncate milliseconds off of a .NET DateTime
C#
.Net
Datetime
Can a Byte[] Array be written to a file in C#?
C#
.Net
Async always WaitingForActivation
C#
.Net
Asynchronous
Async Await
HttpClient and using proxy - constantly getting 407
C#
.Net
Proxy
Httpclient
multiple awaits vs Task.WaitAll - equivalent?
C#
.Net
Async Await
Task Parallel-Library
How to send an email in .Net according to new security policies?
C#
.Net
What is project.lock.json?
.Net
.Net Core
project.json
ASP.NET MVC OutputCacheAttribute with external cache providers
asp.net
.Net
Caching
asp.net Mvc-5
Redis
how to get value from appsettings.json
.Net
Appsettings
Should I derive custom exceptions from Exception or ApplicationException in .NET?
.Net
Exception
How to force C# .net app to run only one instance in Windows?
C#
.Net
Windows
Winforms
What type should I use for a 128 bit number in in .Net?
C#
.Net
Int128
How do you convert a string to a byte array in .NET?
.Net
String
Bytearray
New asp.net charting controls - will they work with MVC (eventually)?
.Net
asp.net
asp.net Mvc
Charts
How to use a App.config file in WPF applications?
C#
.Net
Wpf
Configuration
How can I make a DateTimePicker display an empty string?
.Net
Winforms
Datetimepicker
How do I round a float upwards to the nearest int in C#?
C#
.Net
Rounding
C# non-boxing conversion of generic enum to int?
C#
.Net
Enums
Boxing
How do you display a custom UserControl as a dialog?
C#
.Net
Wpf
Storing Smtp from email friendly display name in Web.Config
.Net
Smtp
Web Config
What needs to be overridden in a struct to ensure equality operates properly?
C#
.Net
Struct
Operators
Equals Operator
Get the name of the current method
.Net
vb.net
Reflection
ReaderWriterLock vs lock{}
C#
.Net
Multithreading
Settings variable values in a Moq Callback() call
C#
.Net
Unit Testing
Mocking
Moq
Compilation Error: "The modifier 'public' is not valid for this item" while explicitly implementing the interface
C#
.Net
Oop
What is the difference in managed and unmanaged code, memory and size?
C#
.Net
Unmanaged
Managed
Select folder dialog WPF
C#
.Net
Wpf
Folderbrowserdialog
LINQ performance FAQ
C#
.Net
Linq
Performance
entity framework Unable to load the specified metadata resource
.Net
Entity Framework
C# Timespan Milliseconds vs TotalMilliseconds
C#
.Net
Timespan
Shared AssemblyInfo for uniform versioning across the solution
C#
.Net
Visual Studio
Visual Studio-2010
.Net Assembly
Why is XmlNamespaceManager necessary?
.Net
Xpath
Xml Namespaces
Selectsinglenode
What's the difference between SubscribeOn and ObserveOn
.Net
system.reactive
XmlNode Value vs InnerText
C#
.Net
Xml
Using multiple instances of MemoryCache
C#
.Net
Caching
.Net 4.0
Memorycache
How to set up a method twice for different parameters with Moq
C#
.Net
Unit Testing
Moq
Make TextBox uneditable
C#
.Net
Winforms
Textbox
How to read data from excel file using c#
C#
.Net
Excel
Ms Office
Cannot load Counter Name data because an invalid index -Exception
C#
.Net
Sql Server-2012
Installing a Topshelf application as a Windows service
.Net
Windows Services
Topshelf
Determine if Json results is object or array
C#
.Net
Json
WPF Window with transparent background containing opaque controls
C#
.Net
Wpf
User Interface
Transparency
How to use StringBuilder wisely?
C#
.Net
String
Memory
Stringbuilder
Why does ?: cause a conversion error while if-else does not?
C#
.Net
Type Conversion
How can a Word document be created in C#?
C#
.Net
Ms Word
Openxml
Does C# have a way of giving me an immutable Dictionary?
C#
Java
.Net
Collections
Dictionary
.Net (dotNet) wrappers for OpenCV?
C#
.Net
Opencv
Mono
Cross Platform
Unhandled exceptions in BackgroundWorker
C#
.Net
Multithreading
Debugging
Backgroundworker
Unit Testing with functions that return random results
C#
.Net
Unit Testing
xunit.net
Pros and cons of RNGCryptoServiceProvider
C#
.Net
Random
How do you determine if two HashSets are equal (by value, not by reference)?
C#
.Net
.Net 3.5
Set
Hashset
When should I use "using" blocks in C#?
C#
.Net
Using
Detecting USB drive insertion and removal using windows service and c#
C#
.Net
Windows
Windows Services
Wmi
Is there a Maven alternative or port for the .NET world?
Java
.Net
Maven 2
Build Process
Build
To return IQueryable<T> or not return IQueryable<T>
C#
.Net
Linq to-Sql
Iqueryable
What is the difference between app.config file and XYZ.settings file?
.Net
Configuration
Settings
Appsettings
Instantiate an object with a runtime-determined type
C#
.Net
Design Patterns
Runtime
Why isn't there an XML-serializable dictionary in .NET?
.Net
Dictionary
Xml Serialization
Appsettings
Which unit testing framework?
C#
.Net
Unit Testing
Difference between IEnumerable Count() and Length
C#
.Net
Ienumerable
Why check this != null?
C#
.Net
Clr
Reflector
Breaking out of a foreach loop from within a switch block
C#
.Net
Splitting a string / number every Nth Character / Number?
C#
.Net
String
Split
Best way to store encryption keys in .NET C#
C#
.Net
Security
Encryption
Convert DataRowCollection to IEnumerable<T>
C#
.Net
Linq
.Net 3.5
Ienumerable
Difference in months between two dates
C#
.Net
vb.net
Date
Calculate MD5 checksum for a file
C#
.Net
Hash
Md5
What is the difference between CurrentCulture and CurrentUICulture properties of CultureInfo in .NET?
.Net
Globalization
Cultureinfo
how to insert datetime into the SQL Database table?
.Net
Sql
Sql Server
Sql Server-2005
C# 3.0
ASP.NET Web Forms and ASP.NET Web Pages
.Net
asp.net
Webforms
How do I resolve "Please make sure that the file is accessible and that it is a valid assembly or COM component"?
C#
.Net
Dll
Opencv
What is it that makes Enum.HasFlag so slow?
C#
.Net
C# : Out of Memory exception
C#
.Net
Out of-Memory
How can I data bind a list of strings to a ListBox in WPF/WP7?
C#
.Net
Wpf
Windows Phone-7
Data Binding
'SuppressMessage' for a whole namespace
C#
.Net
Namespaces
Code Analysis
Fxcop
Winforms: Application.Exit vs Environment.Exit vs Form.Close
C#
.Net
Windows
vb.net
Winforms
Automapper: bidirectional mapping with ReverseMap() and ForMember()
.Net
Automapper
Bidirectional
How to put a task to sleep (or delay) in C# 4.0?
C#
.Net
Multithreading
Parallel Processing
Task Parallel-Library
Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
C#
.Net
asp.net Mvc-4
Dll
Webgrease
Disable Dll Culture Folders on Compile
C#
.Net
Wpf
Culture
Cannot find Microsoft.Office.Interop Visual Studio
C#
.Net
The specified version string does not conform to the required format - major[.minor[.build[.revision]]]
C#
.Net
Assemblyinfo
What is the use case for the (C# 7.2) "private protected" modifier?
C#
.Net
Access Modifiers
C# 7.2
ILMerge Best Practices
C#
.Net
Deployment
Ilmerge
How do I prevent and/or handle a StackOverflowException?
C#
.Net
Stack Overflow
Xslcompiledtransform
Restarting (Recycling) an Application Pool
C#
.Net
asp.net Mvc
Iis
Application Pool
How do I delete a read-only file?
C#
.Net
File
How can I force .NET to use a local copy of an assembly that's in the GAC
.Net
Gac
Do you use TestInitialize or the test class constructor to prepare each test? and why?
.Net
Unit Testing
Constructor
Capture the Screen into a Bitmap
C#
.Net
Screenshot
Can I pass non-string to WCF RESTful service using UriTemplate?
.Net
Wcf
Web Services
Rest
What is the best or most interesting use of Extension Methods you've seen?
C#
.Net
Extension Methods
Syntactic Sugar
What is the worst gotcha in C# or .NET?
C#
.Net
How to recursively list all the files in a directory in C#?
C#
.Net
How do I run a simple bit of code in a new thread?
C#
.Net
Multithreading
How to compare only Date without Time in DateTime types in Linq to SQL with Entity Framework?
C#
.Net
Database
Entity Framework
Linq to-Sql
System.Diagnostics.Debug.WriteLine in production code
.Net
Debugging
system.diagnostics
Preventing a dialog from closing in the button's click event handler
C#
.Net
Windows
Winforms
How do I force full post-back from a button within an UpdatePanel?
C#
.Net
asp.net
asp.net Ajax
Can I get command line arguments of other processes from .NET/C#?
C#
.Net
Clearing content of text file using C#
C#
.Net
Text
File
Entity Framework 4 mapping fragment error when adding new entity scalar
.Net
Entity Framework
Entity Framework-4
"new" keyword in property declaration in c#
C#
.Net
asp.net
Calculate median in c#
C#
.Net
Algorithm
Median
Boxing and unboxing with generics
C#
.Net
Generics
Boxing
Unboxing
Using IIS Express to host a website (temporarily)
.Net
Iis
Iis Express
.NET TimeZoneInfo from Olson time zone
C#
.Net
Timezone
Difference between Style and ControlTemplate
C#
.Net
Wpf
Xaml
Should I recommend sealing classes by default?
C#
Java
.Net
Oop
An elegant way to consume (all bytes of a) BinaryReader?
C#
.Net
Stream
Streamreader
Binaryreader
Convert SQL to Linq left join with null
C#
.Net
Sql
Linq
Is it possible to mock out a .NET HttpWebResponse?
C#
.Net
Unit Testing
Mocking
Moq
How to set Column Type when using EPPlus
.Net
Excel
Epplus
Using a 32bit or 64bit dll in C# DllImport
C#
.Net
Pinvoke
32bit 64bit
Dllimport
How to get execution directory of console application
C#
.Net
Filepath
What are the differences between proxy, wrapper or a façade classes
C#
.Net
Design Patterns
Why I get 411 Length required error?
C#
.Net
Httprequest
Http Status-Code-411
Get currently focused element/control in a WPF window
.Net
Wpf
Focus
How, when and where are generic methods made concrete?
C#
.Net
Generics
IIS Express - 500.19 Cannot read configuration file - because it's looking at the wrong path
.Net
Iis Express
Automatic vertical scroll bar in WPF TextBlock?
C#
.Net
Wpf
Scrollbar
Textblock
Visual Studio Code for .Net Framework
.Net
Visual Studio-Code
Floating Point Number parsing: Is there a Catch All algorithm?
C#
.Net
asp.net
Internationalization
Globalization
Silverlight vs Flex
.Net
Apache Flex
Flash
Silverlight
Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView?
C#
.Net
Winforms
Webkit
Gecko
Is there a way to programmatically minimize a window
C#
.Net
vb.net
Winforms
Apply stroke to a textblock in WPF
.Net
Wpf
Xaml
What is the most efficient way to save a byte array as a file on disk in C#?
C#
.Net
Is the sorting algorithm used by .NET's `Array.Sort()` method a stable algorithm?
C#
.Net
Best way to encode text data for XML
.Net
Xml
Encoding
.Net 2.0
Setting a log file name to include current date in Log4j
Java
.Net
Logging
Log4net
Log4j
Which built-in .NET exceptions can I throw from my application?
C#
.Net
Exception
Creating application shortcut in a directory
C#
.Net
File Io
Shortcut
How do I create an expression tree to represent 'String.Contains("term")' in C#?
C#
.Net
Lambda
Expression Trees
Throwing ArgumentNullException
C#
.Net
Exception
Exception Handling
What is the preferred way to find focused control in WinForms app?
.Net
Winforms
log4net versus TraceSource
.Net
Logging
Log4net
Trace
Diagnostics
Does (or will) C# include features for side-effects verification?
C#
.Net
F#
Parallel Processing
Immutability
The State of Linkers for .NET apps (aka "Please Sir, May I have a Linker" 2009 edition)
C#
.Net
vb.net
Mono
Linker
Get all derived types of a type
C#
.Net
Why C# is not allowing non-member functions like C++
C#
.Net
Function
C++ Cli
Clr
How to make Databinding type safe and support refactoring?
C#
.Net
Data Binding
Refactoring
Type Safety
ICommand MVVM implementation
C#
.Net
Wpf
Mvvm
Icommand
LINQ: Determine if two sequences contains exactly the same elements
C#
.Net
Linq
How to check programmatically if a type is a struct or a class?
C#
.Net
Class
Struct
Types
Why are circular references considered harmful?
.Net
Oop
ASP.NET MVC: Hidden field value does not get rendered using HtmlHelper.Hidden
C#
.Net
asp.net Mvc
Html Helper
Where is mstest.exe located?
.Net
Testing
Mstest
File Location
How to select min and max values of a column in a datatable?
C#
.Net
Select
Datatable
Are C#'s partial classes bad design?
C#
.Net
vb.net
Unity 2.0: How to use Resolve with ResolverOverride?
.Net
unity2.0
Create popup "toaster" notifications in Windows with .NET
.Net
Wpf
Windows
Desktop
How do I obtain a list of all schemas in a Sql Server database
C#
.Net
Sql Server
ado.net
Is there a shorter/simpler version of the for loop to anything x times?
C#
.Net
How to abort a Task like aborting a Thread (Thread.Abort method)?
C#
.Net
Parallel Processing
.Net 4.0
Partial class in different namespaces
C#
.Net
Class
Namespaces
Partial
Maximum value of maxRequestLength?
.Net
Iis 7
.Net 4.0
Maxrequestlength
Find Types in All Assemblies
C#
.Net
asp.net
Reflection
Types
Debug.WriteLine in release build
C#
.Net
Debugging
Is there some way to work with git using .NET application?
C#
.Net
Git
'IsNullOrWhitespace' in JavaScript?
Javascript
.Net
String
Is Empty
Isnullorempty
Convert List<T> to ObservableCollection<T> in WP7
C#
.Net
Windows Phone-7
Collections
Label grow from right to left
C#
.Net
Winforms
Label
Execute specified function every X seconds
C#
.Net
Winforms
Converting BitmapImage to Bitmap and vice versa
C#
.Net
Bitmap
How to convert Javascript datetime to C# datetime?
C#
Javascript
.Net
Datetime
Convert int to a bit array in .NET
C#
.Net
Alternatives to AutoMapper
.Net
Automapper
DataAnnotations: Recursively validating an entire object graph
C#
.Net
Validation
Recursion
Data Annotations
Why is .Contains slow? Most efficient way to get multiple entities by primary key?
C#
.Net
Entity Framework
Linq
Entity Framework-4.1
Passing a method parameter using Task.Factory.StartNew
C#
.Net
.Net 4.0
Task Parallel-Library
Is Int32.ToString() culture-specific?
C#
.Net
Resharper
Cultureinfo
Ignoring null fields in Json.net
C#
.Net
Json
Serialization
json.net
Why does .net use the UTF16 encoding for string, but uses UTF-8 as default for saving files?
C#
.Net
String
Utf 8
Utf 16
What Are Some Good .NET Profilers?
C#
.Net
Profiling
Profiler
Exact time measurement for performance testing
C#
.Net
Performance
Testing
Compare String and Object in C#
C#
.Net
String
MongoDB C# Driver - Ignore fields on binding
C#
.Net
Mongodb
Mongodb Query
Mongodb .Net-Driver
How do I get a return value from Task.WaitAll() in a console app?
C#
.Net
Task Parallel-Library
Console Application
Async Await
How can I retrieve Basic Authentication credentials from the header?
C#
.Net
Authentication
Basic Authentication
C#6.0 string interpolation localization
C#
.Net
C# 6.0
Could not load file or assembly Operation is not supported. (Exception from HRESULT: 0x80131515)
.Net
Visual Studio-2012
Scheduled Tasks
Coded Ui-Tests
xunit Assert.ThrowsAsync() does not work properly?
.Net
Unit Testing
Asynchronous
xunit.net
Using async/await or task in web api controller (.net core)
C#
.Net
asp.net Web-Api
asp.net Core
Could not load file or assembly Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0
C#
.Net
Entity Framework
.Net Core
Entity Framework-Core
IServiceCollection does not contain a defintion for AddHttpClient
C#
.Net
Httpclient
asp.net Core-2.0
Package is not found in the following primary source
.Net
Azure Devops
Nuget Package
Is there an easy way in .NET to get "st", "nd", "rd" and "th" endings for numbers?
.Net
Formatting
Date
Ordinals
What's the best way of accessing field in the enclosing class from the nested class?
C#
.Net
Inner Classes
Visual Studio debugger tips & tricks for .NET
.Net
Visual Studio
Debugging
Hidden Features
How can you change Network settings (IP Address, DNS, WINS, Host Name) with code in C#
C#
.Net
Configuration
Networking
Environment.TickCount vs DateTime.Now
C#
.Net
Datetime
Timespan
process.WaitForExit() asynchronously
C#
.Net
Winforms
User Interface
Asynchronous
How can I get rid of the "The target assembly contains no service types" error message in VS2008?
.Net
Visual Studio-2008
Wcf
Debugging
How to get the "friendly" OS Version Name?
C#
.Net
Winforms
Operating System
SqlDateTime.MinValue != DateTime.MinValue, why?
.Net
Sql Server
Datetime
Types
Single-threaded apartment - cannot instantiate ActiveX control
.Net
Exception
Sta
Single Threaded
Hide form instead of closing when close button clicked
C#
.Net
Winforms
How can I get the current directory in an MSBuild script?
C#
.Net
Msbuild
How to force overriding a method in a descendant, without having an abstract base class?
C#
.Net
Oop
How to display a Windows Form in full screen on top of the taskbar?
C#
.Net
Winforms
Fullscreen
Taskbar
The model item passed into the dictionary is of type ‘mvc.Models.ModelA’ but this dictionary requires a model item of type ‘mvc.Models.ModelB‘
C#
asp.net
.Net
asp.net Mvc
Build
Get sum of two columns in one LINQ query
C#
.Net
Linq
Linq to-Sql
Sum
Return in catch block?
C#
.Net
Exception Handling
what is IEnumerable in .net
.Net
Ienumerable
Why is System.Version in .NET defined as Major.Minor.Build.Revision?
.Net
Version
Version Numbering
Erlang's let-it-crash philosophy - applicable elsewhere?
Java
.Net
Erlang
Defensive Programming
How to disable sort in DataGridView?
C#
.Net
Winforms
Sorting
Datagridview
.NET - WindowStyle = hidden vs. CreateNoWindow = true?
C#
.Net
Process
Processstartinfo
How do I clone a range of array elements to a new array?
C#
Arrays
.Net
Clone
Deep Copy
Set object property using reflection
C#
.Net
Reflection
Properties
Could not establish trust relationship for SSL/TLS secure channel -- SOAP
C#
.Net
Ssl
Trust
NonSerialized on property
C#
.Net
Serialization
Properties
How to check if IOException is Not-Enough-Disk-Space-Exception type?
C#
.Net
Exception Handling
Ioexception
Diskspace
How to calculate distance similarity measure of given 2 strings?
C#
.Net
Levenshtein Distance
Measure
Similarity
Why SortedSet<T>.GetViewBetween isn't O(log N)?
C#
.Net
Complexity Theory
Sortedset
Convert milliseconds to human readable time lapse
C#
.Net
Format
Timespan
Why doesn't Any() work on a c# null object
C#
.Net
Object
Ienumerable
HttpClient request throws IOException
C#
.Net
Httpclient
Ioexception
How does string.Format handle null values?
C#
.Net
string.format
Could not resolve this reference. Could not locate the assembly
C#
.Net
.Include() vs .Load() performance in EntityFramework
C#
.Net
Entity Framework
Why there is a Thread.Sleep(1) in .NET internal Hashtable?
C#
.Net
Hashtable
Thread Sleep
Spinwait
Are there any Fuzzy Search or String Similarity Functions libraries written for C#?
C#
.Net
String
Comparison
Will a future version of .NET support tuples in C#?
C#
.Net
Tuples
Language Features
Using scripts in a master page with ASP.NET MVC
.Net
asp.net
asp.net Mvc
Scripting
How do I use a C# keyword as a property name?
C#
.Net
asp.net Mvc
Generating a Random Decimal in C#
C#
.Net
Random
Decimal
How to create a LINQ to SQL Transaction?
.Net
Linq to-Sql
Transactions
Adjusting decimal precision, .net
.Net
Decimal
Precision
What is the best way to get the executing exe's path in .NET?
C#
.Net
Filesystems
Why not inherit from List<T>?
C#
.Net
List
Oop
Inheritance
Try-catch speeding up my code?
C#
.Net
Clr
Try Catch
Performance Testing
What is the best algorithm for overriding GetHashCode?
.Net
Algorithm
Hashcode
Gethashcode
What is the difference between const and readonly in C#?
C#
.Net
Constants
Readonly
How do I update the GUI from another thread?
C#
.Net
Multithreading
Winforms
User Interface
Why is Dictionary preferred over Hashtable in C#?
C#
.Net
vb.net
Data Structures
Why do we need boxing and unboxing in C#?
C#
.Net
Boxing
Something better than .NET Reflector?
.Net
Reflector
Redgate
Visual Studio jump to next error shortcut?
.Net
vb.net
Visual Studio
Ide
Introducing FOREIGN KEY constraint may cause cycles or multiple cascade paths - why?
.Net
Entity Framework
Foreign Keys
Ef Code-First
Entity Framework-4
Process.start: how to get the output?
C#
.Net
Mono
process.start
Get log4net log file in C#
C#
.Net
Log4net
C# Data Structure Like Dictionary But Without A Value
C#
.Net
Data Structures
When to use a SortedList<TKey, TValue> over a SortedDictionary<TKey, TValue>?
C#
.Net
Sortedlist
Sorteddictionary
Comparing double values in C#
C#
.Net
Double
Why does this polymorphic C# code print what it does?
C#
.Net
Oop
Inheritance
Polymorphism
Using GetProperties() with BindingFlags.DeclaredOnly in .NET Reflection
C#
.Net
Reflection
What's wrong with using Thread.Abort()
C#
.Net
Multithreading
Why does StyleCop recommend prefixing method or property calls with "this"?
C#
.Net
Coding Style
Stylecop
Should I make a DateRange object?
.Net
Model
Tuples
Date Range
Why can't you use null as a key for a Dictionary<bool?, string>?
C#
.Net
Dictionary
Hashtable
C# - Get a list of files excluding those that are hidden
C#
.Net
File
Thread safe collections in .NET
C#
.Net
Multithreading
Collections
Gacutil.exe successfully adds assembly, but assembly not viewable in explorer. Why?
.Net
Windows
Assemblies
Gac
Gacutil
What are lifted operators?
C#
.Net
Nullable
Lifted Operators
Convert string to Color in C#
C#
.Net
Xna
Check if an executable exists in the Windows path
C#
.Net
File
Does lock() guarantee acquired in order requested?
C#
.Net
Synchronization
Locking
Difference between CurrentCulture, InvariantCulture, CurrentUICulture and InstalledUICulture
.Net
Internationalization
Globalization
Dictionary.FirstOrDefault() how to determine if a result was found
C#
.Net
Linq
What are the roots?
.Net
Garbage Collection
Jvm
Clr
Gc Roots
Binding Combobox Using Dictionary as the Datasource
C#
.Net
Winforms
Combobox
Datasource
Why is TaskScheduler.Current the default TaskScheduler?
C#
.Net
Task Parallel-Library
Conceptual
Synchronizationcontext
How to set filter for FileSystemWatcher for multiple file types?
C#
.Net
Filesystemwatcher
Is it possible to select text on a Windows form label?
C#
.Net
asp.net
Winforms
Label
Implementing GetHashCode correctly
C#
.Net
Equals
What are Expression Trees, how do you use them, and why would you use them?
C#
.Net
Linq
Expression Trees
Using Entity Framework (code first) migrations in production
.Net
Entity Framework
Ef Code-First
Entity Framework-Migrations
.gitignore and Visual Studio project: Ignore bin/Debug directory but not bin/Release directory
C#
.Net
Visual Studio
Git
Gitignore
Where can I put custom classes in ASP.NET MVC?
.Net
asp.net Mvc
Enter key press in C#
C#
.Net
Entity Framework Multiple Column as Primary Key by Fluent Api
C#
.Net
Entity Framework
Entity Framework-5
Error - is not marked as serializable
C#
asp.net
.Net
Serialization
.Net Invoke async method and await
C#
.Net
Async Await
DbContext discard changes without disposing
C#
.Net
Entity Framework
Dbcontext
Undo
Create zip file from byte[]
C#
.Net
asp.net Mvc
Zip
.Net 4.5
Text on the left side of checkbox in WPF?
.Net
Wpf
User Interface
Checkbox
OWIN's GetExternalLoginInfoAsync Always Returns null
C#
.Net
asp.net Mvc
Owin
Google Openid
Bulk Update in C#
C#
.Net
Sql Server
Bulk
Owin Twitter login - the remote certificate is invalid according to the validation procedure
.Net
asp.net Mvc
Twitter
Twitter Oauth
Owin
How do the semantics of AsyncLocal differ from the logical call context?
C#
.Net
Async Await
.Net 4.6
What's the fastest way to read a text file line-by-line?
C#
.Net
Performance
File Io
Text Files
WPF global exception handler
C#
.Net
Wpf
Exception
Exception Handling
How to read action method's attributes in ASP.NET Core MVC?
C#
.Net
asp.net Core
asp.net Core-Mvc
Token based authentication in Web API without any user interface
C#
.Net
Authentication
asp.net Web-Api
Http Token-Authentication
Image UriSource and Data Binding
.Net
Wpf
Data Binding
Xaml
How do I upload a file to an SFTP server in C# (.NET)?
C#
.Net
Sftp
How to read assembly attributes
.Net
Reflection
Assemblies
Attributes
Looking for simple rules-engine library in .NET
C#
.Net
.Net Core
Logic
Rule Engine
Since .NET has a garbage collector why do we need finalizers/destructors/dispose-pattern?
C#
.Net
Memory
Memory Management
Garbage Collection
How to check if file exists on FTP before FtpWebRequest
C#
.Net
Ftp
Ftpwebrequest
Uninstalling an MSI file from the command line without using msiexec
.Net
Installation
Command Line
Wix
Windows Installer
Destructor vs IDisposable?
C#
.Net
Regular Expression to split on spaces unless in quotes
C#
.Net
Regex
How do I create a directory on FTP server using C#?
C#
.Net
Ftp
Webclient
Java equivalent to .Net's NotSupportedException
Java
.Net
Exception
Is shifting bits faster than multiplying and dividing in Java? .NET?
C#
Java
.Net
Optimization
Bit Manipulation
Best way to check for inner exception?
C#
.Net
Exception
Exception Handling
Is “Code Access Security” of any real world use?
.Net
Security
Code Access-Security
Unit test for thread safe-ness?
C#
.Net
Unit Testing
Nunit
Thread Safety
How to touch a file in C#?
C#
.Net
File
Find a string between 2 known values
C#
.Net
Regex
Is it possible to merge two pages created by SandCastle into a single main page?
.Net
Sandcastle
Code Documentation
C# dictionary - one key, many values
C#
.Net
Dictionary
Datasource
Where do I get a thread-safe CollectionView?
.Net
Wpf
Multithreading
Thread Safety
Collectionview
Comparing strings with tolerance
C#
.Net
String Comparison
Similarity
What is the difference between StreamWriter.Flush() and StreamWriter.Close()?
C#
.Net
File Io
Checking if a bit is set or not
C#
.Net
Bit Manipulation
Find all source hardcoded strings
C#
.Net
Visual Studio
Localization
What does "throw;" by itself do?
C#
.Net
Exception
How to find windows service exe path
C#
.Net
Windows Services
SetupSet() is obsolete. In place of what?
C#
.Net
Unit Testing
Mocking
Moq
Question about terminating a thread cleanly in .NET
C#
.Net
Winforms
Multithreading
How to check if property setter is public
C#
.Net
Reflection
C# 4.0, optional parameters and params do not work together
C#
.Net
C# 4.0
Params
Optional Parameters
How can I convert Assembly.CodeBase into a filesystem path in C#?
C#
.Net
Nunit
Codebase
Is relying on && short-circuiting safe in .NET?
C#
.Net
Operators
Logical Operators
Short Circuiting
How to get csc.exe path?
C#
.Net
Csc
Passing Moq mock-objects to constructor
C#
.Net
Mocking
Moq
Require SSL in WebApi?
.Net
Ssl
asp.net Web-Api
How do I use reflection to invoke a private method?
C#
.Net
Reflection
Private Methods
How to disable the ability to select in a DataGridView?
C#
.Net
Winforms
Datagridview
Dynamic in the immediate window causes 'Microsoft.CSharp.RuntimeBinder.Binder' is not defined or imported error
C#
.Net
Visual Studio
Dynamic
Immediate Window
How can I debug an internal error in the .NET Runtime?
C#
.Net
How is GetHashCode() of C# string implemented?
C#
.Net
String
Hash
Gethashcode
Optional return in C#.Net
C#
.Net
Nullable
Optional
Reverting to a previous commit in Git for visual studio 2012
C#
.Net
Git
Visual Studio
HttpClientFactory.Create vs new HttpClient
.Net
Dotnet Httpclient
.Net 4.6
Is there a way to prevent Visual Studio from printing Thread exited statements into the Output Window?
C#
.Net
Visual Studio
Why do these two comparisons have different results?
C#
.Net
Equality
Proper way of handling exception in task continuewith
C#
.Net
Task Parallel-Library
Task
What happens if I remove the auto added supportedRuntime element?
.Net
Convert double to float by cast or Convert.ToSingle()?
C#
.Net
Casting
Type Conversion
SignInManager,what it is and how,when to use?
C#
.Net
Authentication
asp.net Mvc-5
asp.net Identity
How to extract custom header value?
C#
asp.net
.Net
asp.net Core
.Net Core
Why are HashSets of structs with nullable values incredibly slow?
C#
.Net
Performance
Struct
How to find out if a Timer is running?
.Net
Timer
Namespace documentation on a .Net project (Sandcastle)?
.Net
Documentation
Sandcastle
How would you compare two XML Documents?
C#
.Net
Xml
Compare
Xmldocument
Can I specify my explicit type comparator inline?
C#
.Net
Linq
Lambda
Why exactly isn't MEF a DI/IoC container?
.Net
Dependency Injection
What's the 'obj' directory for in .NET?
C#
.Net
Refresh DataGridView when updating data source
C#
.Net
Winforms
Datagridview
Extension methods syntax vs query syntax
C#
.Net
Linq
Extension Methods
Linq Query-Syntax
How to correctly unregister an event handler
C#
.Net
Events
Delegates
How do I store a dictionary object in my web.config file?
.Net
asp.net
Dictionary
Web Config
How do I automatically delete temp files in C#?
C#
.Net
Temporary Files
Best way to remove multiple items matching a predicate from a .NET Dictionary?
C#
.Net
Linq
Collections
Dictionary
How to select all text in Winforms NumericUpDown upon tab in?
C#
.Net
Winforms
Numericupdown
How to get next (or previous) enum value in C#
C#
.Net
Enums
What's a good way of doing string templating in .NET?
C#
.Net
String
Templating
Create a hashcode of two numbers
.Net
Algorithm
How to display ClickOnce Version number on Windows Forms
C#
.Net
Deployment
Clickonce
Performance of TypeCasting
C#
.Net
Performance
Types
How can I get the CPU temperature?
C#
.Net
Wmi
Max number of concurrent HttpWebRequests
.Net
Httpwebrequest
Multithreading
Truncate string on whole words in .NET C#
C#
.Net
String
Truncate
Does garbage collector call Dispose()?
C#
.Net
Memory
Dispose
Garbage Collection
Where can I learn about MEF?
C#
.Net
Mef
Synchronously waiting for an async operation, and why does Wait() freeze the program here
C#
.Net
Task Parallel-Library
Windows Store-Apps
Async Await
XmlSerializer - There was an error reflecting type
C#
.Net
Xml
Serialization
.Net 2.0
How do I skip an iteration of a `foreach` loop?
C#
.Net
Loops
Differences between Microsoft .NET 4.0 full Framework and Client Profile
.Net
.Net 4.0
.Net Client-Profile
When should I use Lazy<T>?
C#
.Net
Lazy Evaluation
Understanding events and event handlers in C#
C#
.Net
Events
Event Handling
Raise an event whenever a property's value changed?
C#
.Net
Events
Properties
Can I set text box to readonly when using Html.TextBoxFor?
.Net
Html
asp.net Mvc
How to determine if an event is already subscribed
C#
.Net
Description for event id from source cannot be found
.Net
Windows
Event Log
Why are .NET timers limited to 15 ms resolution?
.Net
Timer
WebClient.DownloadString() returns string with peculiar characters
C#
asp.net
.Net
Character Encoding
Special Characters
Why does (does it really?) List<T> implement all these interfaces, not just IList<T>?
C#
.Net
MongoDB GridFs with C#, how to store files such as images?
C#
.Net
Mongodb
Mongodb .Net-Driver
Gridfs
convert datetime to date format dd/mm/yyyy
C#
.Net
What is the F# language created to accomplish?
.Net
F#
How to escape a while loop in C#
C#
.Net
Windows
Performance of "direct" virtual call vs. interface call in C#
C#
.Net
Performance
Language Design
Is there any graph data structure implemented for C#
C#
.Net
Data Structures
Graph Theory
How to Troubleshoot Intermittent SQL Timeout Errors
.Net
Sql
Sql Server
Sql Server-2008
Timeout
Retrieve an object from entityframework without ONE field
C#
.Net
Sql
Entity Framework
AvalonEdit: Cascading HighlightingColorizers
C#
.Net
Avalonedit
Run code on UI thread in WinRT
.Net
Multithreading
Windows 8
Windows Runtime
Dispatcher
How to convert object to Dictionary<TKey, TValue> in C#?
C#
.Net
Object
Dictionary
Purpose of ClientSettingsProvider.ServiceUri in app.config
.Net
Wcf
TimeZoneInfo.ConvertTimeToUtc issue
C#
.Net
Datetime
char + char = int? Why?
C#
.Net
Getting return value from Task.Run
C#
.Net
Task Parallel-Library
Async Await
Enable Migrations with Context in Separate Assembly?
C#
.Net
Entity Framework
asp.net Mvc-4
Entity Framework-Migrations
How can I determine if a .NET assembly was built for x86 or x64?
.Net
Assemblies
X86
64 Bit
X86 64
Setting WPF image source in code
C#
.Net
Wpf
Image
Most useful NLog configurations
.Net
Logging
Mono
Nlog
What's the difference between ViewData and ViewBag?
.Net
asp.net Mvc-3
Difference
Viewbag
Viewdata
.Net Core and NuGet
.Net
Nuget
.Net Core
AddIdentity vs AddIdentityCore
C#
.Net
asp.net Mvc
asp.net Core
Ref folder within .NET 5.0 bin folder
C#
.Net
Msbuild
.Net 5
Absolute path back to web-relative path
C#
asp.net
.Net
Path
Mappath
What is the best way to parse html in C#?
C#
.Net
Html
Parsing
Html Content-Extraction
Yield in VB.NET
.Net
vb.net
Why is there no RAII in .NET?
.Net
Struct
Destructor
Raii
Value Type
What are the most valuable .Net Compact Framework Tips, Tricks, and Gotcha-Avoiders?
.Net
Windows Mobile
Compact Framework
Does End Using close an open SQL Connection
.Net
Sql
Sql Server
vb.net
Is there a command line command for verifying what version of .NET is installed
.Net
Windows
Batch File
Cmd
ASP.net page without a code behind
C#
.Net
asp.net
Sharepoint
Code Behind
Programmatically detecting Release/Debug mode (.NET)
.Net
Debugging
Release
The .NET 2.0 SDK Programs - What does each tool do?
.Net
Sdk
Why did a network-related or instance-specific error occur while establishing a connection to SQL Server?
.Net
Sql Server
Visual Studio
How to get timestamp of tick precision in .NET / C#?
C#
.Net
Timestamp
YouTube-like GUID
C#
.Net
Url Shortener
What does .NET stand for? Is it an acronym?
.Net
Definition
Acronym
In WPF, how can I determine whether a control is visible to the user?
.Net
Wpf
User Interface
Wpf Controls
Visibility
How to get the numeric value from the Enum?
C#
.Net
Reflection
Properties
Enums
C# and arrays of anonymous objects
C#
asp.net
.Net
Arrays
Anonymous Types
C# 4: Real-World Example of Dynamic Types
C#
.Net
In .NET, what thread will Events be handled in?
C#
.Net
Events
Multithreading
Delegates
What is the basic concept behind WaitHandle?
C#
.Net
Multithreading
Can I set LARGEADDRESSAWARE from within Visual Studio?
C#
.Net
Visual Studio
Msbuild
Large Address-Aware
Why is Main method private?
C#
.Net
Syntax
Methods
One-time initialization for NUnit
C#
.Net
Nunit
.NET Framework 4.0 Client Profile vs .NET Framework 4.0
.Net
Visual Studio
Frameworks
Binding empty list or null value to table valued parameter on a stored procedure (.NET)
.Net
Sql Server-2008
Stored Procedures
Table Valued-Parameters
Should LINQ be avoided because it's slow?
C#
.Net
Linq
Performance
What do braces after C# new statement do?
C#
.Net
New Operator
How to use dependency injection with an attribute?
C#
.Net
asp.net Mvc
Dependency Injection
Does .NET have icon collections?
.Net
Wpf
Winforms
Icons
Convert an array to a HashSet<T> in .NET
C#
.Net
Step Into Property/Function (F11) doesn't work as expected
.Net
Visual Studio-2010
Debugging
ResolveUrl without an ASP.NET Page
C#
.Net
asp.net
Resolveurl
Byte[] to ASCII
C#
.Net
File Upload
Bitconverter
generic NOT constraint where T : !IEnumerable
C#
.Net
Generics
Ienumerable
.NET Module vs Assembly
C#
.Net
Type or namespace name does not exist
C#
.Net
Visual Studio-2010
Visual Studio
Nested using statements in C#
C#
.Net
File
Using
Windsor - pulling Transient objects from the container
.Net
Dependency Injection
Castle Windsor
Ioc Container
DateTime.Parse("2012-09-30T23:00:00.0000000Z") always converts to DateTimeKind.Local
C#
asp.net
.Net
Datetime
Utc
Global setting for AsNoTracking()?
C#
.Net
Entity Framework
Change Tracking
Get file's size from bytes array (without saving to disc)
C#
.Net
Arrays
Timezone Abbreviations
C#
.Net
Timezone
How to get first object out from List<Object> using Linq
C#
.Net
List
Linq
C# 4.0
ObserveOn and SubscribeOn - where the work is being done
C#
.Net
system.reactive
Detect if deserialized object is missing a field with the JsonConvert class in Json.NET
C#
.Net
Json
Serialization
json.net
Proper way to implement ICloneable
C#
.Net
Oop
Icloneable
How to marshal multi-dimensional arrays
.Net
Multidimensional Array
F#
Marshalling
How do I spawn threads on different CPU cores?
C#
.Net
Windows
Multithreading
Sorting Directory.GetFiles()
.Net
.Net 2.0
Trace vs Debug in .NET BCL
C#
.Net
Debugging
Instrumentation
Make NameValueCollection accessible to LINQ Query
.Net
Linq
Namevaluecollection
.NET - Get default value for a reflected PropertyInfo
C#
.Net
Reflection
Why does NotImplementedException exist?
.Net
Exception
Exception Handling
Notimplementedexception
Notsupportedexception
'Shadows' vs. 'Overrides' in VB.NET
.Net
vb.net
Oop
Overriding
Shadows
What alternatives are there to ClickOnce?
.Net
Wix
Clickonce
Web Deployment
Getting hash of a list of strings regardless of order
C#
.Net
vb.net
String
Hash
.Net vs SSIS: What should SSIS be used for?
.Net
Sql Server
Ssis
How can I limit Parallel.ForEach?
C#
.Net
Asynchronous
parallel.foreach
What is [Serializable] and when should I use it?
C#
.Net
Serialization
Ignoring a class property in Entity Framework 4.1 Code First
C#
.Net
Entity Framework
Ef Code-First
Entity Framework-4.1
How to find the Number of CPU Cores via .NET/C#?
C#
.Net
Cpu Cores
How do I create a global exception handler for a WCF Services?
.Net
Wcf
How to convert an ArrayList to a strongly typed generic list without using a foreach?
C#
.Net
List
Arraylist
Generic List
System.Data.Linq.ChangeConflictException: Row not found or changed
C#
.Net
Linq
How do I use reflection to determine the nested type (element type) of an array?
C#
.Net
Reflection
Using ELMAH in a console application
.Net
Desktop Application
Console Application
Elmah
Does Stream.Dispose always call Stream.Close (and Stream.Flush)
C#
.Net
Using
Is it possible to create a new operator in c#?
C#
.Net
Operators
MethodInvoker vs Action for Control.BeginInvoke
C#
.Net
Delegates
Invoke
Deploy ASP.NET MVC on Linux: Best Practices, Tools & Surprises
asp.net
.Net
asp.net Mvc
Linux
Mono
How to define custom TraceListener in app.config
.Net
Configuration
Exception Handling
Trace
Trace Listener
How does DateTime.ToUniversalTime() work?
C#
.Net
Datetime
Utc
How to change the color of winform DataGridview header?
C#
.Net
Winforms
Datagridview
Should I Throw ArgumentNullException if a string is blank?
.Net
center MessageBox in parent form
C#
.Net
vb.net
Winforms
Messagebox
What does MethodImplOptions.Synchronized do?
.Net
Multithreading
When should I use SnapsToDevicePixels in WPF 4.0?
.Net
Wpf
Snapstodevicepixels
How do I remove the empty row from the bottom of a DataGridView control?
C#
.Net
Winforms
Datagridview
What is better: int.TryParse or try { int.Parse() } catch
C#
.Net
Parsing
Type Conversion
Tryparse
How to correctly read an Interlocked.Increment'ed int field?
C#
.Net
Multithreading
Thread Safety
Very High Memory Usage in .NET 4.0
C#
.Net
.Net 4.0
Garbage Collection
Rdlc
Get filenames without path of a specific directory
C#
.Net
Format decimal value to string with leading spaces
C#
.Net
vb.net
String Formatting
Ambiguous extension method
C#
.Net
"Type not expected", using DataContractSerializer - but it's just a simple class, no funny stuff?
.Net
Xml
Serialization
Xml Serialization
Datacontractserializer
Removing all DataGrid row and cell borders
C#
.Net
Wpf
Xaml
Datagrid
What are the differences between ConcurrentQueue and BlockingCollection in .Net?
.Net
Generics
C# 4.0
Determine if uploaded file is image (any format) on MVC
C#
.Net
asp.net Mvc
Razor
File Upload
How to set up remote debugging on a machine without Visual Studio
C#
.Net
Visual Studio-2010
Remote Debugging
Resharper: Implicitly captured closure: this
C#
.Net
Resharper
What is the simplest way to write the contents of a StringBuilder to a text file in .NET 1.1?
C#
.Net
File Io
Windows Ce
Stringbuilder
How to access elements of a JArray (or iterate over them)
C#
.Net
Twitter
json.net
Access to disposed closure in C#?
C#
.Net
Multithreading
Getting the thread ID from a thread
C#
.Net
Multithreading
How to generate .NET 4.0 classes from xsd?
C#
.Net
Xsd
Why do I get a warning icon when I add a reference to an MEF plugin project?
.Net
Mef
Project Reference
Count the items from a IEnumerable<T> without iterating?
C#
.Net
Ienumerable
How to rethrow InnerException without losing stack trace in C#?
C#
.Net
Exception
Difference between .NET Framework 4.6, .Net Native and .Net Core
.Net
.Net Core
Windows Forms vs. WPF
C#
.Net
Wpf
Forms
Xaml
Loop through an object's properties and get the values for those of type DateTime
C#
.Net
Reflection
What is the difference between new Object() and new Object{} in expressions in C#
C#
.Net
Resharper
Browse for a directory in C#
C#
.Net
Directory
Loading System.ServiceModel configuration section using ConfigurationManager
C#
.Net
Xml
Wcf
Configurationmanager
Debug vs. release in .NET
C#
.Net
asp.net
Static and Instance methods with the same name?
C#
.Net
Oop
What is gcnew?
.Net
C++ Cli
Where is the MOQ documentation?
C#
.Net
Testing
Mocking
Moq
How should I set the default proxy to use default credentials?
.Net
Proxy
Why does C# XmlDocument.LoadXml(string) fail when an XML header is included?
C#
.Net
Xml
Why are there dashes in a .NET GUID?
.Net
Guid
Uuid
Execute multiple command lines with the same process using .NET
C#
.Net
Command Line
Why does .NET use int instead of uint in certain classes?
C#
.Net
Auto-initializing C# lists
C#
.Net
List
Collections
Default Capacity of List
C#
.Net
List
Capacity
IEqualityComparer<T> that uses ReferenceEquals
C#
.Net
Iequalitycomparer
Referenceequals
Custom Assembly Attributes
C#
.Net
Assemblies
Attributes
Determine assembly version during a post-build event
C#
.Net
Visual Studio
Deployment
Visual Studio-2005
How can I set a breakpoint in referenced code in Visual Studio?
.Net
Visual Studio
Debugging
Breakpoints
How to switch between debug and release in Visual C# 2010 Express?
C#
.Net
Debugging
Release
Visual Studio-Express
Why do BCL Collections use struct enumerators, not classes?
C#
.Net
Ienumerator
Base Class-Library
Does .NET 4 have a built-in JSON serializer/deserializer?
.Net
Json
Serialization
Jsonserializer
How to export non-exportable private key from store
.Net
Encryption
Bouncycastle
Rsacryptoserviceprovider
How does DateTime.Now.Ticks exactly work?
C#
.Net
Datetime
How do I group Windows Form radio buttons?
C#
.Net
Winforms
Radio Button
HttpClient.GetAsync(...) never returns when using await/async
C#
.Net
Asynchronous
Async Await
Dotnet Httpclient
When should I use GC.SuppressFinalize()?
C#
.Net
Garbage Collection
Idisposable
Suppressfinalize
How to get the Stack trace when logging exceptions with NLog?
.Net
Exception
Stack Trace
Nlog
Currency format for display
C#
.Net
asp.net
Globalization
Currency
Moq, strict vs loose usage
C#
.Net
Unit Testing
Mocking
Moq
LINQ to Entities does not recognize the method Int32 get_Item(Int32)
.Net
Linq
Entity Framework
How do parameterized queries help against SQL injection?
C#
.Net
Sql
Sql Server-2005
Parameterized Query
Constantly getting "Loading toolbox content from package" in Visual Studio AND IT TAKES FOREVER!
C#
.Net
Wpf
Visual Studio
Xaml
C#: Function in Function possible?
C#
.Net
Methods
How can I load this file into an NUnit Test?
C#
.Net
Testing
Tdd
Nunit
.NET Stopwatch - performance penalty
C#
.Net
Stopwatch
Attempt by method 'System.Web.Helpers.Json..cctor()' to access method 'System.Web.Helpers.Json.CreateSerializer()' failed
C#
.Net
Json
.Net 4.0
Convert YYYYMMDD string date to a datetime value
C#
.Net
Datetime
How to change 1 char in the string?
C#
.Net
String
How to hide public methods from IntelliSense
C#
.Net
Reflection
Intellisense
Encapsulation
Why is AddRange faster than using a foreach loop?
C#
.Net
C# 4.0
MVC Razor Radio Button
C#
.Net
asp.net Mvc
asp.net Mvc-3
Razor
How to check if a user belongs to an AD group?
C#
.Net
Winforms
C# 4.0
Active Directory
Get DateTime as UTC with Dapper
C#
.Net
Orm
Utc
Dapper
How does MVC 4 List Model Binding work?
C#
.Net
asp.net Mvc
asp.net Mvc-4
Model Binding
HTTP HEAD request with HttpClient in .NET 4.5 and C#
C#
.Net
Httprequest
.Net 4.5
Why does C# allow statements after a case but not before it?
C#
.Net
Switch Statement
Get Timezone Offset of Server in C#
C#
.Net
Ignore a property during xml serialization but not during deserialization
C#
.Net
Xml Serialization
json.net
Deserialization
Select multiple columns using Entity Framework
C#
.Net
Entity Framework
Entity Framework The ALTER TABLE statement conflicted with the FOREIGN KEY constraint
C#
Sql
.Net
Sql Server
Entity Framework
cannot implicitly convert type 'bool?' to 'bool'. An explicit conversion exists (are you missing a cast?)
C#
.Net
Code-first migration: How to set default value for new property?
C#
.Net
Entity Framework
Entity Framework-6
Entity Framework-Migrations
xperf WinDBG C# .NET 4.5.2 Application - Understanding process dump
C#
.Net
Windbg
Jit
Xperf
Warning: Found conflicts between different versions of the same dependent assembly
.Net
Warnings
How do I reference a .NET Framework project in a .NET Core project?
C#
.Net
asp.net Core
.Net Core
Convert .Net Core to .Net Framework
asp.net
.Net
asp.net Core
.Net Framework-Version
How to fix obsolete ILoggerFactory methods?
C#
.Net
asp.net Core
.Net Core
asp.net Core-2.2
.NET unit testing packages
C#
.Net
Unit Testing
Testing
How can I unit test a Windows Service?
C#
.Net
Unit Testing
Windows Services
How to test a WPF user interface?
.Net
Wpf
Testing
When to use 'nested diagnostic context' (NDC)?
.Net
Logging
Log4net
Ndc
How to clear out session on log out
asp.net
.Net
asp.net Session
What's the difference between Assert.AreNotEqual and Assert.AreNotSame?
C#
.Net
Unit Testing
Testing
Assert
Why isn't my public property serialized by the XmlSerializer?
C#
.Net
Xml Serialization
Given a private key, is it possible to derive its public key?
.Net
Encryption
Cryptography
Encryption Asymmetric
Erratic Invalid Viewstate issue in a .NET application
C#
.Net
asp.net
Viewstate
How to clear previous expectations on an object?
.Net
Rhino Mocks
Canadian postal code validation
C#
.Net
Regex
What did you find hardest to understand when learning WPF
.Net
Wpf
Remove Item in Dictionary based on Value
C#
.Net
Linq
Dictionary
WCF: Exposing readonly DataMember properties without set?
.Net
Wcf
Readonly
Datacontract
Datamember
How do I do a SHA1 File Checksum in C#?
C#
.Net
Sha1
Checksum
MVVM Madness: Commands
C#
.Net
Wpf
Design Patterns
Mvvm
IDictionary<TKey, TValue> in .NET 4 not covariant
.Net
Dictionary
.Net 4.0
Covariance
Invoking methods with optional parameters through reflection
C#
.Net
Reflection
Invoke
Default Value
Why isn't there generic variance for classes in C# 4.0?
C#
.Net
Generics
C# 4.0
VB.NET: how to prevent user input in a ComboBox
.Net
vb.net
Combobox
ITextSharp HTML to PDF?
.Net
Itextsharp
Html to-Pdf
Can you get a Func<T> (or similar) from a MethodInfo object?
.Net
Performance
Reflection
Methodinfo
Func
Download image from the site in .NET/C#
C#
.Net
Image
Streaming
How to deselect all selected rows in a DataGridView control?
.Net
Winforms
Datagridview
Converting Decimal to Double in C#?
C#
.Net
Double
Decimal
windows form .. console.writeline() where is console?
C#
.Net
Winforms
Console Application
Attempted to access an unloaded appdomain when using System.DirectoryServices
.Net
asp.net Mvc
Visual Studio-2010
Delete all entities in Entity Framework
C#
.Net
Wpf
Entity Framework
MS Visual Studio: How to exclude certain Project Folders from publishing?
C#
asp.net
.Net
Visual Studio
Publish
Replacing the WPF entry point
.Net
Wpf
Entry Point
Manually invoking ModelState validation
C#
.Net
asp.net Mvc
asp.net Mvc-3
asp.net Mvc-Validation
Error "Elements defined in a namespace cannot be explicitly declared as private, protected, or protected internal"
C#
.Net
Dictionary or KeyedCollection?
C#
.Net
Differences between .ContextMenu and .ContextMenuStrip
C#
.Net
Winforms
Menu
CryptographicException "Key not valid for use in specified state." while trying to export RSAParameters of a X509 private key
C#
.Net
Encryption
Cryptography
Rsa
Path.Combine for URLs?
C#
.Net
asp.net
Url
Path
How to deal with costly building operations using MemoryCache?
C#
.Net
Memorycache
What can I do in C# 5 with .Net 4.5 that I couldn't do in C# 4 with .Net 4?
C#
.Net
.Net 4.5
C# 5.0
asp.net 4.5
Is there any benefit of using an Object Initializer?
C#
.Net
Memory Management
How to freeze a popsicle in .NET (make a class immutable)
C#
.Net
Multithreading
Convert currency string to decimal?
C#
.Net
Type Conversion
How to make IEnumerable<string>.Contains case-insensitive?
.Net
Arrays
String
Linq
Symbol file not loading for debugging custom project in Visual Studio 2012
C#
.Net
Visual Studio
Visual Studio-2012
Msbuild
Why is there both a System.Net.Http and System.Web.Http namespace?
C#
asp.net
.Net
Performance: type derived from generic
C#
.Net
Performance
Generics
Clr
Targeting pack for .NET 4.5.2 not installed
C#
.Net
Visual Studio-2013
Visual Studio 2015 RTM - Debugging not working
C#
.Net
Debugging
Visual Studio-Debugging
Visual Studio-2015
No overload for method 'ToString" takes 1 arguments when casting date
C#
.Net
Angularjs
Datetime
Download file with WebClient or HttpClient?
C#
.Net
Rest
Httpclient
Webclient
Limit size of Queue<T> in .NET?
.Net
Collections
Queue
UrlEncode through a console application?
C#
.Net
Console
What is the best way to store user settings for a .NET application?
C#
.Net
What is IL Weaving?
.Net
Postsharp
Call and Callvirt
.Net
Reflection
Cil
reflection.emit
Parse DateTime with time zone of form PST/CEST/UTC/etc
C#
.Net
Parsing
Datetime
Timezone
Is there a built in .NET exception that indicates an illegal object state?
C#
.Net
Exception
What is ".NET Core"?
.Net
.Net Core
How to make Combobox in winforms readonly
C#
.Net
Winforms
Code for a simple thread pool in C#
C#
.Net
Multithreading
Threadpool
User Group and Role Management in .NET with Active Directory
.Net
asp.net
Security
Active Directory
net.pipe vs. net.tcp vs. http Bindings
.Net
Wcf
Wcf Binding
Difference between native and managed code?
.Net
Native
Unmanaged
Managed
Machine Code
Retrieve system uptime using C#
C#
.Net
Windows
Uptime
"The test form is only available for requests from the local machine."
.Net
Web Services
Security
Is there a built-in way to convert IEnumerator to IEnumerable
C#
.Net
Linq
Difference between SystemInformation.ComputerName, Environment.MachineName, and Net.Dns.GetHostName
.Net
Windows
Hostname
Should I use public properties and private fields or public fields for data?
C#
.Net
Coding Style
Properties
How to detect when application terminates?
C#
.Net
Multithreading
Appdomain
Comparing two List<string> for equality
C#
.Net
Collections
Comparison
Equality
When using Trusted_Connection=true and SQL Server authentication, will this affect performance?
C#
.Net
asp.net
Sql Server-2005
ado.net
I want Spy++ but I don't have Visual Studio
.Net
Spy++
How to measure the total memory consumption of the current process programmatically in .NET?
C#
.Net
Performance
Memory
Memory Management
AppDomain and MarshalByRefObject life time : how to avoid RemotingException?
C#
.Net
Remoting
Appdomain
Object Lifetime
Reset or Clear .NET MemoryStream
.Net
Memorystream
Is read-only auto-implemented property possible?
C#
.Net
Properties
Msdn
Readonly
How to set a text box for inputing password in winforms?
C#
.Net
Winforms
Windows Forms' CheckBox CheckedChanged vs. CheckStateChanged
.Net
Winforms
Events
Controls
Am I misunderstanding LINQ to SQL .AsEnumerable()?
C#
.Net
Linq
Linq to-Sql
What problem does IStructuralEquatable and IStructuralComparable solve?
.Net
Equality
Icomparable
Iequalitycomparer
How securely unguessable are GUIDs?
.Net
Cryptography
Guid
Java Equivalent to .NET's String.Format
C#
Java
.Net
String
what is the max limit of data into list<string> in c#?
C#
.Net
What's the purpose of xml files next to the dll?
.Net
asp.net
Dll
How to read a large (1 GB) txt file in .NET?
C#
.Net
Streamreader
How do you use sections in c# 4.0 app.config?
C#
.Net
Configuration
App Config
Configurationsection
Deserializing into a List without a container element in XML
C#
.Net
Xml Serialization
Use SQL Server time datatype in C#.NET application?
C#
.Net
Sql
Sql Server
Time
Turn byte into two-digit hexadecimal number just using ToString?
C#
.Net
String Formatting
Detailed Explanation of Variable Capture in Closures
C#
.Net
Closures
Value Type
Reference Type
Catch two exceptions in the same catch block?
C#
.Net
Exception
Exception Handling
Why does the deployment package from my buildserver have additional assemblies?
.Net
Visual Studio-2010
Teamcity
difference between IComparable and IComparer
C#
.Net
Icomparable
Icomparer
WPF WebBrowser control - how to suppress script errors?
C#
.Net
Wpf
Webbrowser Control
Use Cases and Examples of GoF Decorator Pattern for IO
Java
.Net
Design Patterns
Io
Decorator
Need to perform Wildcard (*,?, etc) search on a string using Regex
C#
.Net
Regex
String
Wildcard
In MVVM model should the model implement INotifyPropertyChanged interface?
.Net
Wpf
Design Patterns
Mvvm
Inotifypropertychanged
Regex for string not containing multiple specific words
.Net
Regex
Why is casting a dynamic of type object to object throwing a null reference exception?
C#
.Net
Dynamic
Nullreferenceexception
Creating a List of Lists in C#
C#
.Net
How can I extract a file from an embedded resource and save it to disk?
C#
.Net
Embedded Resource
Csharpcodeprovider
because it has a DefiningQuery and no <InsertFunction> element exists in the <ModificationFunctionMapping> element
C#
.Net
Entity Framework
Favorite Visual Studio keyboard shortcuts
.Net
Visual Studio
Keyboard Shortcuts
I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
C#
.Net
Google Chrome
Ads
Adsense
Do you need to dispose of objects and set them to null?
C#
.Net
Garbage Collection
Dispose
Convert.ChangeType() fails on Nullable Types
C#
.Net
Reflection
Pattern for calling WCF service using async/await
C#
asp.net
.Net
Wcf
Async Await
FluentValidation: Check if one of two fields are empty
C#
.Net
asp.net Mvc
Validation
Fluentvalidation
How do I get System.Web.Http.Owin?
.Net
Owin
Does Entity Framework support parallel async queries?
.Net
Entity Framework
Entity Framework-6
Does { } act like ( ) when creating a new object in C#?
C#
.Net
Instantiation
Casting to object in .NET reference source
C#
.Net
Object
Difference between using the ASP.NET Core Web Application (.NET Core) with net461 set as the only framework and using the (.NET Framework) template
C#
asp.net
.Net
asp.net Core
How to run all tests in Visual Studio Code
.Net
Visual Studio-Code
.Net Core
xunit.net
Asynchronously commit or rollback a transaction scope
C#
.Net
Async Await
Transactionscope
LINQ on the .NET 2.0 Runtime
.Net
Linq
.Net 3.5
.Net 2.0
Clr
Does SqlCommand.Dispose close the connection?
.Net
Garbage Collection
Dispose
Sqlconnection
Sqlcommand
What is the best way to improve performance of NHibernate?
.Net
Performance
Nhibernate
Orm
Data Access-Layer
Text on a ProgressBar in WPF
.Net
Wpf
Controls
Progress Bar
Using Side-by-Side assemblies to load the x64 or x32 version of a DLL
C#
.Net
64 Bit
How do you check for permissions to write to a directory or file?
C#
.Net
C# / F# Performance comparison
C#
.Net
F#
Performance
Is there a better way to trim a DateTime to a specific precision?
C#
.Net
Datetime
Finding the default application for opening a particular file type on Windows
C#
.Net
Windows
File Type
Unit testing the app.config file with NUnit
.Net
Unit Testing
Nunit
Simple animation using C#/Windows Forms
C#
.Net
Winforms
Animation
What's the best method to pass parameters to SQLCommand?
.Net
Sql Server
ado.net
Sqlcommand
How do I set a connection string config programmatically in .net?
.Net
Configuration
Connection String
ICollection - Get single value
C#
.Net
Icollection
List AppDomains in Process
.Net
Process
Appdomain
Can I use a Regex in an XPath expression?
.Net
Xml
Regex
Xpath
Best WPF open source projects
.Net
Wpf
Open Source
Why doesn't Visual Studio refresh the folders when I click the Solution Explorer refresh button?
.Net
Visual Studio
Solution Explorer
When do you use extension methods, ext. methods vs. inheritance?
C#
.Net
HttpWebRequest & Native GZip Compression
C#
.Net
Stream
Gzip
Http Compression
Overriding GetHashCode for mutable objects?
C#
.Net
Overriding
Equals
Gethashcode
Why should a .NET struct be less than 16 bytes?
C#
.Net
Why use Finally in Try ... Catch
.Net
vb.net
Exception Handling
Try Catch-Finally
Why can't DateTime.ParseExact() parse "9/1/2009" using "M/d/yyyy"
.Net
Datetime
Parsing
Cultureinfo
Why is the use of reflection in .NET recommended?
C#
.Net
Reflection
Do I need to reset a stream(C#) back to the start?
C#
.Net
What are the defaults for Binding.Mode=Default for WPF controls?
.Net
Wpf
Binding
Dependency Properties
Binding Mode
Get first key from Dictionary<string, string>
C#
.Net
Dictionary
Collections
How can I use enum in C# for storing string constants?
.Net
String
Constants
Enums
C++/CLI: why should I use it?
C#
.Net
C++ Cli
Recommended method for loading a URL via a scheduled task on Windows
.Net
Windows
Internet Explorer
Scheduling
Scheduled Tasks
Where is HttpContent.ReadAsAsync?
C#
.Net
asp.net Web-Api
Httpcontent
How to parse a string into a nullable int
C#
.Net
String
.Net 3.5
Nullable
Running multiple async tasks and waiting for them all to complete
C#
.Net
Asynchronous
Task Parallel-Library
Async Await
C# How to redirect stream to the console Out?
C#
.Net
Console Application
Get Absolute URL from Relative path (refactored method)
C#
.Net
asp.net
.Net 3.5
Why are C# structs immutable?
C#
.Net
Immutability
.net ORM Comparison
.Net
Orm
Comparison
Algorithm for simplifying decimal to fractions
C#
.Net
Algorithm
Math
Why are there two incompatible session state types in ASP.NET?
.Net
asp.net
asp.net Mvc-3
Session State
What are the implications of asking Reflection APIs to overwrite System.String.Empty?
C#
.Net
Reflection
GZip Compression On IIS 7.5 is not working
.Net
asp.net
Iis
Gzip
Iis 7.5
Is IDisposable.Dispose() called automatically?
C#
.Net
Idisposable
CPU friendly infinite loop
C#
.Net
Console Application
Infinite Loop
LINQ - Query syntax vs method chains & lambda
C#
.Net
Linq
Lambda
Linq Query-Syntax
Resources for working with Machine Learning in F#
.Net
F#
Functional Programming
Machine Learning
Storing data into list with class
C#
.Net
List
How do I detect at runtime that .NET version 4.5 is currently running your code?
.Net
Clr
Version
.Net 4.5
How can I connect xaml and xaml.cs files
C#
.Net
Wpf
Xaml
HttpClient does not exist in .net 4.0: what can I do?
C#
.Net
Webclient
is there an asp.net fiddle?
C#
asp.net
.Net
asp.net Mvc
How to programmatically set the system volume?
C#
.Net
Audio
Get first element from a dictionary
C#
asp.net
.Net
.Net 3.5
Accessing a non-static member via Lazy<T> or any lambda expression
C#
.Net
.Net 4.0
Lazy Evaluation
How to check for default DateTime value?
C#
.Net
Design Patterns
How to reference Microsoft.Web.Administration?
.Net
Iis
Fire and forget async method in asp.net mvc
C#
asp.net
.Net
Asynchronous
Async Await
VS2013 Intellisense constantly stops working
C#
.Net
Visual Studio
Visual Studio-2013
Intellisense
How do I concatenate two arrays in C#?
C#
Arrays
.Net
Linq
Why doesn't Mutex get released when disposed?
C#
.Net
Mutex
How to upload a file to amazon S3 super easy using c#
C#
.Net
Amazon Web-Services
Amazon S3
MSBuild ProjectReference:private ("Copy Local") - what are the allowed values and behaviour?
.Net
Visual Studio
Msbuild
Copy Local
Msbuild Projectreference
Linking Cancellation Tokens
C#
.Net
Cancellationtokensource
Cancellation Token
'dotnet restore' vs. 'nuget restore' with TeamCity
.Net
Msbuild
Nuget
Teamcity
Do binding redirects in app.config for class libraries do anything?
C#
.Net
Nuget
App Config
Assembly Binding-Redirect
How to download the latest build artifacts from Azure DevOps programmatically?
C#
.Net
Azure
Azure Devops
Azure Artifacts
No UseDatabaseErrorPage() extension method in Net Core 3.0
C#
.Net
Database
Visual Studio
.Net Core
Compressing / Decompressing Folders & Files
C#
.Net
File
Compression
Multi-threaded splash screen in C#?
C#
.Net
Winforms
Multithreading
Splash Screen
How do I find out if a column exists in a VB.Net DataRow
.Net
vb.net
ado.net
Dataset
Datarow
Find Unused Resources in a .NET Solution
.Net
Resources
When do you use StringBuilder.AppendLine/string.Format vs. StringBuilder.AppendFormat?
C#
.Net
Formatting
Stringbuilder
When to use .NET BufferedStream class?
.Net
Performance
Buffer
User authentication and authorisation in ASP.NET MVC
.Net
asp.net Mvc
Authentication
Authorization
How to avoid System.IO.PathTooLongException?
C#
.Net
WPF: How do I set the Owner Window of a Dialog shown by a UserControl?
.Net
Wpf
vb.net
Dialog
User Controls
TFS vs SVN
.Net
Svn
Version Control
Tfs
Configuration Management
Managing multiple selections with MVVM
C#
.Net
Data Binding
Mvvm
How to detect if machine is joined to domain?
C#
.Net
What's the purpose of Thread.SpinWait method?
.Net
Multithreading
How do I programmatically save an image from a URL?
C#
.Net
Image
ClickOnce error: Value does not fall within the expected range
.Net
Clickonce
What is the correct way to compare char ignoring case?
C#
.Net
String
Comparison
Char
How to call generic method with a given Type object?
C#
.Net
Generics
Reflection
Types
Looping through rows in a DataView
.Net
Loops
Dataview
HashSet that preserves ordering
C#
.Net
Hashset
Is the CLR a virtual machine?
.Net
Clr
Vm Implementation
Single-assembly multi-language Windows Forms deployment (ILMerge and satellite assemblies / localization) - possible?
C#
.Net
Winforms
Localization
Assemblies
Expression of type 'System.Int32' cannot be used for return type 'System.Object'
C#
.Net
Lambda
How to suppress a StyleCop warning?
C#
.Net
Visual Studio-2010
Stylecop
How to get the size of available system memory?
C#
.Net
Memory
Diagnostics
Detect target framework version at compile time
C#
.Net
Visual Studio
Msbuild
Extension Methods
When should I use a struct instead of a class?
.Net
Oop
What is the difference between String.Empty and "" (empty string)?
.Net
Double Quotes
String
How to check whether a string is a valid HTTP URL?
C#
.Net
Validation
Url
Uri
Exception messages in English?
C#
.Net
Exception
Localization
Who should call Dispose on IDisposable objects when passed into another object?
C#
.Net
Idisposable
Looking for a practical approach to sandboxing .NET plugins
.Net
Mef
Sandbox
Code Access-Security
Maf
How can I convert decimal? to decimal
C#
.Net
Decimal
Type Conversion
Nullable
How to ignore compiler warning when using Obsolete attribute on a class used with a KnownType attribute
C#
.Net
Attributes
Compiler Warnings
C# Version Of SQL LIKE
C#
.Net
Sql
String
Why is DateTime.Now a property and not a method?
C#
.Net
Datetime
Data at the root level is invalid
C#
.Net
Xml
Convert DateTime to long and also the other way around
C#
.Net
Datetime
How can I list all registered assemblies in GAC?
.Net
Assemblies
Gac
NuGet add reference error while installing packages
.Net
Visual Studio-2010
Nuget
Finding element in XDocument?
C#
.Net
Xml
Linq to-Xml
How to see the Check-In History of a particular user in TFS?
.Net
Version Control
Tfs
History
Checkin
Entity Framework Code First AddOrUpdate method insert Duplicate values
C#
.Net
Entity Framework-4
Get affected rows on ExecuteNonQuery
C#
Mysql
.Net
Sql
Executenonquery
String format currency
C#
.Net
Globalization
c# MemoryStream vs Byte Array
C#
asp.net
.Net
Why do my array of structs take up so much memory?
C#
.Net
Memory Management
Out of-Memory
.Net Micro-Framework
Automatically rename a file if it already exists in Windows way
C#
.Net
Performance differences... so dramatic?
C#
.Net
Data Structures
Collections
connectionStrings configSource in App.config not working
C#
.Net
Visual Studio-2012
Connection String
Comparing two string arrays in C#
C#
.Net
String
Linq
Equality
Missing Entity Framework Include(lambda) extension
.Net
Entity Framework
Lambda
How to do integration testing in .NET with real files?
C#
.Net
File
Unit Testing
Integration Testing
Why does .NET behave so poorly when StackOverflowException is thrown?
C#
.Net
Stack Overflow
Awaiting multiple Tasks with different results
C#
.Net
Async Await
Task Parallel-Library
.Net 4.5
What is the purpose of nameof?
C#
.Net
C# 6.0
Nameof
If async-await doesn't create any additional threads, then how does it make applications responsive?
C#
.Net
Multithreading
Asynchronous
Async Await
How to specify the port an ASP.NET Core application is hosted on?
.Net
asp.net Core
Convert UTC/GMT time to local time
C#
.Net
Datetime
Utc
Why use the 'ref' keyword when passing an object?
C#
.Net
Pass by-Reference
Ref
Where is MSBuild.exe installed in Windows when installed using BuildTools_Full.exe?
.Net
Msbuild
Windows Server
VS 2017 : The security debugging option is set but it requires the Visual Studio hosting process which is unavailable
C#
.Net
Wpf
Visual Studio
Visual Studio-2017
CLIPBRD_E_CANT_OPEN error when setting the Clipboard from .NET
.Net
Wpf
Clipboard
Are there any OK image recognition libraries for .NET?
C#
.Net
vb.net
Image
Image Recognition
Getting full path for Windows Service
C#
.Net
Windows Services
How do the .NET Framework, CLR and Visual Studio version numbers relate to each other?
.Net
Visual Studio
Clr
Versions
Calculate the display width of a string in C#?
C#
.Net
Are delegates and callbacks the same or similar?
.Net
Callback
Delegates
How to programmatically select an item in a WPF TreeView?
C#
.Net
Wpf
Treeview
Itemscontrol
Fast and compact object serialization in .NET
C#
.Net
Serialization
How can I convert an integer into its verbal representation?
C#
.Net
.Net 3.5
TCPClient vs Socket in C#
C#
.Net
Sockets
Network Programming
Why should constructors on abstract classes be protected, not public?
C#
.Net
Oop
Inheritance
Access Modifiers
Check RabbitMQ queue size from client
.Net
Message Queue
Rabbitmq
Amqp
Securing Elmah in ASP.NET website
.Net
asp.net
Web Config
Elmah
How to Append to an expression
C#
.Net
Linq
Get date of first Monday of the week?
C#
.Net
Prevent ArrayList.Add() from returning the index
.Net
Powershell
Arraylist
.Net Assembly Binding Redirect with Differing Public Key Tokens
.Net
asp.net
Assemblybinding
Publickeytoken
Can I serialize Anonymous Types as xml?
.Net
Xml
Serialization
Anonymous Types
What is type-safe in .net?
C#
.Net
Why can .NET not have memory leaks?
.Net
Memory Leaks
What is the difference between Entity Framework and LINQ to SQL by .NET 4.0?
.Net
Linq to-Sql
Entity Framework
.Net 4.0
INotifyPropertyChanged and Auto-Properties
C#
.Net
vb.net
Should I have a separate assembly for interfaces?
.Net
Namespaces
Assemblies
'File.Copy' does not overwrite a file
C#
.Net
System.BadImageFormatException An attempt was made to load a program with an incorrect format
.Net
Badimageformatexception
Revit
Target Framework
Revit Api
Watermark TextBox in WinForms
.Net
Winforms
Textbox
Watermark
How to create an extension method for ToString?
C#
.Net
Tostring
Adding an attachment to email using C#
C#
.Net
Email
Gmail
Encoding parameters for a URL
C#
.Net
Url
Silverlight
Encoding
What is the purpose of a stack? Why do we need it?
C#
.Net
vb.net
Cil
.Net Assembly
How can I get my webapp's base URL in ASP.NET MVC?
.Net
asp.net
asp.net Mvc
Iis
Enum Naming Convention - Plural
C#
.Net
Enums
Naming Conventions
Plural
No connection could be made because the target machine actively refused it?
C#
.Net
asp.net Web-Api2
Socketexception
system.net.webexception
Produce a random number in a range using C#
C#
.Net
Random
What is C# analog of C++ std::pair?
C#
.Net
Data Structures
Std Pair
Base Class-Library
Logging best practices
.Net
asp.net
Logging
Trace
Regular Expression for password validation
C#
.Net
Regex
Difference between manual locking and Synchronized methods
C#
.Net
Multithreading
Locking
DataRow: Select cell value by a given column name
C#
.Net
Excel
Datarow
What is the type of null literal?
C#
.Net
Language Lawyer
For an object, can I get all its subclasses using reflection or other ways?
C#
.Net
Inheritance
Reflection
Why does the C# compiler allow an explicit cast between IEnumerable<T> and TAlmostAnything?
C#
.Net
Generics
Compiler Errors
Datacontract exception. Cannot be serialized
C#
.Net
Wcf
Declare IDisposable for the class or interface?
C#
.Net
Dispose
Idisposable
Days, hours, minutes, seconds between two dates
C#
.Net
Datetime
LINQ - Find all items in one list that aren't in another list
C#
.Net
Linq
.Net 3.5
Return list of specific property of object using linq
C#
.Net
Linq
Linq Query-Syntax
Not sure when to use an abstract property and when not
C#
.Net
Oop
Properties
Abstract
How to delete all files from a specific folder?
C#
.Net
File path for project files?
C#
.Net
Path
Accessing post or get parameters in custom authorization MVC4 Web Api
.Net
asp.net Mvc-4
Authorization
asp.net Web-Api
Installing Mono 3.x in Ubuntu/Debian
.Net
Mono
How to force an exception while debugging in Visual Studio?
C#
.Net
Visual Studio
Why do I get an exception when passing "null" constant but not when passing a "null" string reference?
C#
.Net
Reference
Argumentnullexception
Differences between nuget-packing a csproj vs. nuspec
C#
.Net
Nuget
What are the differences between using ConfigureAwait(false) and Task.Run?
C#
.Net
.Net 4.5
Async Await
C# 5.0
.net local assembly load failed with CAS policy
C#
.Net
Architecture for async/await
C#
.Net
Asynchronous
Async Await
C# 5.0
Webclient / HttpWebRequest with Basic Authentication returns 404 not found for valid URL
C#
.Net
Serious bugs with lifted/nullable conversions from int, allowing conversion from decimal
C#
.Net
Nullable
Implicit Conversion
Compiler Bug
How to get the "dnu" command working on OS X?
.Net
Macos
asp.net Core
Dnx
What's the strangest corner case you've seen in C# or .NET?
C#
.Net
How do I get formatted JSON in .NET using C#?
C#
.Net
Json
Javascriptserializer
Most efficient way to concatenate strings?
C#
.Net
String
Optimization
What does "exited with code 9009" mean during this build?
.Net
Visual Studio
Numerous instances of VBCSCompiler.exe
C#
.Net
Visual Studio-2015
Roslyn
What is the difference between ASP.NET MVC 6 and ASP.NET Core 1.0 and the reason behind the core framework?
.Net
asp.net Mvc
asp.net Core-Mvc
How do I exclude files/folders from a .NET Core/Standard project?
.Net
Msbuild
.Net Core
Visual Studio-2017
.Net Standard
Is the Microsoft.VisualBasic namespace "true .NET" code?
.Net
vb.net
Does C# optimize the concatenation of string literals?
C#
.Net
Performance
Optimization
Performance of Object.GetType()
C#
.Net
Performance
What is the best way to determine application root directory?
C#
.Net
Winforms
Double-checked locking in .NET
.Net
Multithreading
Paradigms
Double Checked-Locking
How can I install a certificate into the local machine store programmatically using c#?
C#
.Net
Wcf
Certificate
Makecert
Text alignment in a WPF DataGrid
C#
.Net
Wpf
Xaml
Wpftoolkit
Lint for C#
C#
.Net
Code Analysis
Lint
How do I call paint event?
C#
.Net
Winforms
Events
Problems after copying XAML controls from WPF Application to a class library
.Net
Wpf
Xaml
Calling Console.WriteLine from multiple threads
.Net
console.writeline
Get List<> element position in c# using LINQ
C#
.Net
Linq
.Net Core
Position
When should I use out parameters?
C#
.Net
Out
Instancing a class with an internal constructor
C#
.Net
Reflection
Regex.Match whole words
C#
.Net
Regex
Having problems with converting my DateTime to UTC
C#
.Net
asp.net
asp.net Mvc
Multiple Where clauses in Lambda expressions
C#
.Net
Lambda
How to Get IP Address?
C#
.Net
asp.net
How good is Dotfuscator Community Edition? What is "good enough obfuscator"?
.Net
Obfuscation
Piracy
Dotfuscator
Piracy Prevention
Compelling Reasons to Use Marker Interfaces Instead of Attributes
.Net
asp.net
Attributes
Interface
Marker Interfaces
Determine framework (CLR) version of assembly
.Net
Assemblies
Version
Finding property differences between two C# objects
C#
.Net
Reflection
Auditing
Creating methods with infinite parameters?
C#
.Net
Function
Overloading
Generic methods in .NET cannot have their return types inferred. Why?
C#
.Net
Type Inference
Python vs C#/.NET -- what are the key differences to consider for using one to develop a large web application?
.Net
Python
Sql Server
Django
asp.net Mvc-2
Clever way to append 's' for plural form in .Net (syntactic sugar)
C#
.Net
String Formatting
Html.TextboxFor default value for Integer/Decimal to be Empty instead of 0
C#
.Net
asp.net Mvc
C# if-null-then-null expression
C#
.Net
Conditional Operator
Conditional Expressions
Windows Azure or Amazon EC2 for ASP.NET MVC Development?
.Net
asp.net
Azure
Amazon Ec2
Cloud
How to capitalize names
C#
.Net
How can I run an EXE program from a Windows Service using C#?
C#
.Net
Windows
Windows Services
process.start
Getting Http Status code number (200, 301, 404, etc.) from HttpWebRequest and HttpWebResponse
C#
.Net
Http
Httpwebrequest
How do I get the computer name in .NET
C#
.Net
How do I get a human-readable file size in bytes abbreviation using .NET?
C#
.Net
vb.net
Filesize
Human Readable
What does the @ prefix do on string literals in C#
C#
.Net
String
Syntax
Literals
Current Year in ASP.NET MVC 3
.Net
asp.net Mvc-3
Razor
How can I Zip and Unzip a string using GZIPOutputStream that is compatible with .Net?
Android
.Net
Compression
Zip
Gzip
ASP.NET strange compilation error
.Net
asp.net
Iis
Regex to match anything but two words
.Net
Regex
Regex Negation
How to send email to multiple address using System.Net.Mail
C#
.Net
Smtp
How to determine whether T is a value type or reference class in generic?
C#
.Net
Generics
How to get around the memory leak in the .NET Webbrowser control?
.Net
Memory
Memory Leaks
Browser
Webbrowser Control
Show row number in row header of a DataGridView
C#
.Net
Winforms
Datagridview
Set Visible property with server tag <%= %> in Framework 3.5
asp.net
.Net
Visible
Servertag
Why isn't there an asynchronous file delete in .net?
.Net
File Io
Asynchronous
'Step Into' is suddenly not working in Visual Studio
.Net
Visual Studio-2010
Debugging
Visual Studio-Debugging
Using statement vs. IDisposable.Dispose()
C#
.Net
vb.net
Using
Idisposable
how to compare string with enum in C#
C#
.Net
What operations are atomic in C#?
C#
.Net
Multithreading
Atomic
Changing the color of the title bar in WinForm
C#
.Net
Winforms
An efficient way to Base64 encode a byte array?
C#
.Net
Check an integer value is Null in c#
C#
.Net
Why doesn't Lock'ing on same object cause a deadlock?
C#
.Net
Locking
Deadlock
Adding new line of data to TextBox
C#
.Net
Winforms
User Interface
Textbox
.NET Caching how does Sliding Expiration work?
C#
.Net
Caching
Controlling Volume Mixer
C#
.Net
vb.net
Winforms
Enum is Reference Type or Value Type?
.Net
Enums
Value Type
Reference Type
What does the web.config compilation/assemblies element do?
asp.net
.Net
asp.net Mvc-4
How to include other files to the output directory in C# upon build?
C#
.Net
Installation
"vertical" regex matching in an ASCII "image"
Php
.Net
Regex
Perl
Pcre
How to read existing text files without defining path
C#
.Net
Text
File Io
How to create indexes in MongoDB via .NET
C#
.Net
Mongodb
Indexing
Mongodb .Net-Driver
What is the entry point of a WPF application?
C#
.Net
Wpf
C# 4.0
How to fix DNX/DNVM in Visual Studio 2015?
.Net
Visual Studio
Visual Studio-2015
Dnx
Dnvm
Visual Studio 2013 and .NET 4.6
.Net
Visual Studio-2013
Windows 8.1
.Net 4.6