query
stringlengths
15
143
relevant
sequencelengths
1
16
C# object references and Action types
[ "271440" ]
Converting Enumeration<Integer> for loop from Java to C#? What exactly is an Enumeration<Integer> in C#?
[ "141088" ]
Passing type 'var' into a method in C#
[ "55101" ]
if(value == null) vs if(null == value)
[ "271561" ]
Assign a lambda expression using the conditional (ternary) operator
[ "26347506", "263151" ]
Linq performance: Any vs. Contains
[ "4445219" ]
Mimic File.Move if the destination already exists
[ "8776395" ]
Convert String to System.IO.Stream
[ "1879395" ]
Why should I use SqlCommand.CommandType = StoredProcedure?
[ "9267078" ]
How to use Zip on three IEnumerables
[ "5284315" ]
string.Remove doesnt work
[ "1948978", "39235445", "20419727" ]
Check if a string in C# is a URL
[ "5717312" ]
what tuples are good for?
[ "3089706" ]
Calling base constructor in C#
[ "12051" ]
Why doesn't the C# compiler catch an InvalidCastException
[ "4499528" ]
Eric Lippert and Neal Gafter C# Puzzle
[ "9792163" ]
Loop until TcpClient response fully read
[ "3609280", "48170368", "8081444", "13524680", "12087145", "1623197" ]
What is the difference between int[][] and int[,]?
[ "1159222" ]
How do I prevent decimal values from being truncated to 2 places on save using the EntityFramework 4.1 CodeFirst?
[ "3504660" ]
How do I convert a byte array to a string?
[ "1003275" ]
How I can convert System.Collection.IEnumerable to List<T> in c#?
[ "7617771" ]
Unable to use File.WriteAllBytes() in asp.net MVC, cannot choose method from method group did you intend to invoke the method?
[ "16188314" ]
Generic Covariance and contravariance
[ "4034495" ]
Passing a function as parameter
[ "2082615" ]
C# Windows 'Open With >' Context menu behaviour
[ "222561", "6088961", "50544343" ]
Dapper to DataTable
[ "17755373" ]
Why can't I use interface with explicit operator?
[ "4854571", "12533748", "14833069" ]
Why have empty get set properties instead of using a public member variable?
[ "6113497", "1180860", "4751845" ]
Is there a better way to determine the number of lines in a large txt file(1-2 GB)?
[ "119559" ]
C# how to check for null. (value is null) or (null == value). Can we use `is` operator instead of == operator
[ "40676426" ]
HttpWebRequest + Windows Auth - NetworkCredential just doesn't work
[ "1680718" ]
What's the difference between "btn.Click += new RoutedEventHandler (ButtonClick)" and "btn.Click += ButtonClick"?
[ "1884595" ]
How to limit a generic type parameter to System.Enum
[ "7244", "79126" ]
C# autoproperty vs normal fields
[ "653536" ]
Why can't I cast a dictionary of one value type to dictionary of another value type when the value types can be cast from one another?
[ "6557" ]
Best way to handle Datarow DBNull
[ "4604414" ]
Get Enum from Description attribute
[ "2650080", "5794071", "3422407", "15217548", "10955517", "15580398" ]
UrlEncode - Javascript vs. C#
[ "86477", "21687310" ]
Why is it better to lock(objLock) than lock(this)
[ "14422", "251391" ]
Same CPU ID on two Intel machines
[ "1101772" ]
using out type in linq
[ "4961675" ]
C# List - Removing items while looping / iterating
[ "1582285" ]
How to know the port number used by c# UdpClient?
[ "1314671" ]
Splitting a string with uppercase
[ "3103730", "3216085" ]
Entity framework self referencing loop detected
[ "54051024", "63612785", "7397207", "46413166" ]
Default for generic type?
[ "707780" ]
Collection of generic types
[ "3215402" ]
Method not found: 'Void Newtonsoft.Json.Serialization.DefaultContractResolver.set_IgnoreSerializableAttribute(Boolean)'
[ "16756336" ]
What is the proper way to re-throw an exception in C#?
[ "11931432", "60546665", "22623" ]
Nullable Method Arguments in C#
[ "271588" ]
What is difference between normal typecasting and using “AS” keyword
[ "2483", "132445" ]
Using a variable name used in a child scope
[ "2049330", "26803987", "62454279" ]
There is no implicit conversion between null and datetime
[ "75746" ]
Why is .ForEach() on IList<T> and not on IEnumerable<T>?
[ "101265" ]
Tools to monitor performance of C# methods
[ "3927" ]
Why won't this Path.Combine work?
[ "53102", "20253031" ]
How to compare two List<String> to each other?
[ "43500" ]
Cannot convert lambda expression to type 'string' because it is not a delegate type
[ "2058487" ]
Show 2 decimals places (unless there are more significant digits)
[ "8038994" ]
How to force inline functions in C#?
[ "473782" ]
Whats the difference between HttpRuntime.Cache and Session?
[ "428634" ]
How is var different than other keywords?
[ "10548988", "21299005" ]
How do I copy the contents of a String to the clipboard in C#?
[ "3546016", "36249007" ]
Round Double To Two Decimal Places
[ "164926" ]
Multiplying strings in C#
[ "532892" ]
Mapping between stl C++ and C# containers
[ "3659044" ]
Compare multiple values in one condition
[ "3254839" ]
Activator.CreateInstance(Type) for a type without parameterless constructor
[ "390578" ]
How to show/display message box in C# asp.net forms?
[ "16370465" ]
Are resources disposed even if an exception is thrown in a using block?
[ "518352" ]
Generics can't infer second parameter?
[ "5555730", "4477636", "57935819", "16818812" ]
Using "Throw" in a catchblock (and nothing else!)
[ "2999298" ]
Why use String.Format?
[ "16432", "16789970", "30698770", "39202683" ]
What are Generic Collections in C#?
[ "400314" ]
Standard deviation of generic list?
[ "895929", "2253874" ]
Shuffle List<T>
[ "273313" ]
Compiler gives error when struct is not initialized and if we try to access the property but not with variable
[ "2069435" ]
How do you find the caller function?
[ "171970", "280389" ]
Invalid variance: The type parameter 'T' must be contravariantly valid on 'UserQuery.IItem<T>.ItemList'. 'T' is covariant
[ "5041664", "12484293", "49518878" ]
Why is the double colon(::) operator required to resolve a namespace conflict?
[ "2045052" ]
Save Settings in a .NET Winforms Application
[ "26369", "58577254" ]
IList<int> vs List<int>
[ "5322545", "400135" ]
C# instantiate generic List from reflected Type
[ "266115" ]
WPF global exception handler
[ "17203316", "30077467", "793100", "2730349", "40480175" ]
Collection was modified; enumeration operation may not execute in ArrayList
[ "3875103", "33703494", "1582285", "2791503", "42766527" ]
Form constructor vs Form_Load
[ "2521322" ]
Get date of first Monday of the week?
[ "28796572", "38039" ]
Sorting object list by string property C#
[ "722868", "188141" ]
DateTime Picker In WinForm How To Pick Time?
[ "93472" ]
Action as a optional parameter in a function
[ "6503934" ]
How do I escape " in verbatim string?
[ "1928909" ]
Auto encoding detect in C#
[ "1025332" ]
C# lambda variable initialization
[ "31764532" ]
How do I convert a TimeSpan to a formatted string?
[ "15957984", "574881", "41798308", "33473158", "840120", "23702201" ]
What is a predicate in c#?
[ "556425" ]
How do I enforce null checking?
[ "1943465", "21340871" ]
Unable to deserialize classes with multiple constructors with Json.NET
[ "23017716" ]
How to get all classes in current project using reflection?
[ "1315665" ]
Is getting and setting a simple static properties thread safe?
[ "2074670" ]
C#: Func<> instead of methods?
[ "3113226" ]