I have a problem with return not working at all.
For now I'm just printing to the console, so I'm replacing return with Console.WriteLine() , but I did not always want to have to do that.
Here is an example that retu...
I'm trying to access a website through the WebBrowser and this morning suddenly the following error appeared
You can not create an instance of the ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' because the current thread is not in...
An optional parameter in C # is declared as follows (see parameter y ):
public void DoFoo(String x, String y = "") { ... }
In many cases this feature can be overridden by overload method signature
public void DoFoo(String x) { ....
I need to check how to make a comparison between strings , in C #, using the Contains() method that disregards both accent sensitivity and case / strong> of a string .
Example:
var mainStr = "Acentuação";
mainStr.Contains("acen...
How to implement a class so that I can add an exception to an exception list.
This class would be used for the case below, for example:
In the validation method it can return one or more errors, so each error is added an exception in the l...
I have a project in Asp.Net MVC where I need to work with a large volume of data. To get them from the Database (Microsoft SQL Server) using Entity Framework 4 I basically know three ways:
1st form:
var resultado = from p in db.Pessoa...
I have a code that reads a CSV and saves the information in the database, however I ended up getting a "different" CSV from what I am used to reading. This CSV comes with double quotation marks in the information.
Ex:
"0", "20151109", "171729...
In terms of performance, speed, or security, what is the best object to use as a DataSource ?
Example, I am creating a DataSource , to popular a GridView :
By SqlDataSource :
this.sqlDataSource1.ConnectionName = "...
I have three entities: Manager , PersonalData and Address . A Manager has a PersonalData and a PersonalData has a Address .
My question is when creating ViewModels , I would have to have a proper...