Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

Why XML-Serializable class need a parameterless constructor

I'm writing code to do Xml serialization. With below function. public static string SerializeToXml(object obj) { XmlSerializer serializer = new XmlSerializer(…

c# .net xml-serialization
Get individual query parameters from Uri

I have a uri string like: http://example.com/file?a=1&b=2&c=string%20param Is there an …

c# .net uri
How to make a Generic Type Cast function

Possible Duplicate: is there a generic Parse() function that will convert a string to any type using parse? I want …

c# .net generics
Binding Combobox Using Dictionary as the Datasource

I'm using .NET 2.0 and I'm trying to bind a combobox's Datasource to a sorted dictionary. So the error I'm getting …

c# .net winforms combobox datasource
The model backing the 'ApplicationDbContext' context has changed since the database was created

First of all, I have not seen this error anywhere else and I guess it's not a replicate so please …

.net asp.net-mvc linq entity-framework asp.net-mvc-5
SqlDataAdapter vs SqlDataReader

What are the differences between using SqlDataAdapter vs SqlDataReader for getting data from a DB? I am specifically looking into …

c# .net
Reasons for a 409/Conflict HTTP error when uploading a file to sharepoint using a .NET WebRequest?

I've got a method that uses a WebRequest to upload a file to a sharepoint 2010 list/folder, using a PUT …

.net sharepoint httpwebrequest webrequest
How can I make my own event in C#?

How can I make my own event in C#?

c# .net events
Switch case on type c#

Possible Duplicate: C# - Is there a better alternative than this to 'switch on type'? Hello suppose i get a …

c# .net optimization switch-statement
maxReceivedMessageSize and maxBufferSize in app.config

How to increase maxReceivedMessageSize and maxBufferSize parameters in app.config file to 2000000 before running the application.

c# .net winforms wcf service-model