Questions tagged as '.net'

1
answer

What is an input parameter with equality (assignment operator)?

I have a function defined as follows: public classeDeRetorno nomeDaFunção(string param1, string param2, string param3 = "") What does param3 = "" mean? Does it equal the parameter to "" ?     
asked by 10.01.2017 / 12:43
2
answers

How to create a multi-platform application?

Let's go there and create a legal application, a Console Application system written in Visual Basic .NET in the .NET Framework, then you want to port this application to other platforms , but without creating a dependency on each platform, yo...
asked by 13.05.2016 / 22:35
1
answer

AddOrUpdate - use array as parameter

I'm running tests with the Entity Framework and I had a problem putting a array as a parameter. Is this behavior normal? If yes, what name? It works List<Product> product = new List<Product>() var p = product...
asked by 04.11.2015 / 15:32
2
answers

Catching elements around a selected array

The idea is to create an array of integers with the amount of rows and columns defined by the user. Then an existing value in the array must be entered and the program should return the values immediately to the left, right, above and below the...
asked by 30.08.2018 / 16:26
3
answers

Field date 01/01/0001

I'm having a project
asked by 08.04.2014 / 15:30
2
answers

Dictionary Search

I have the following dictionary: public static Dictionary<string, string> ObterCodigo() { return new Dictionary<string, string> { {"18", "Teste"}, {"19", "Teste"}, {"02", "AAA"},...
asked by 29.01.2014 / 14:12
2
answers

Do I need to use Visual Studio to program in C #?

I want to learn C # to become one of my main languages, but my current PC is a bit run out and does not run Visual Studio well, but with Visual Studio Code it's fine, do I need Visual Studio to program in C #? I would like to know if this is the...
asked by 14.10.2018 / 02:52
2
answers

Error trying to update table using C #

I created a form to change a table, but my update is not working. cnxCli.sel =/*"set dateformat dmy \n"+ */ "update Cliente" + "set Nome = '" + txtNome.Text +"'," + "Rg = '" + mskRg.Text +...
asked by 16.12.2015 / 02:32
1
answer

What is Partial View?

Using the Controller I can return a Partial View , JSON, string and other things. What is a Partial View? Is it heavily used in projects? Why use it?     
asked by 18.10.2015 / 08:57
2
answers

Which is safer: session or cookie? [duplicate]

Thinking about security , what is the best option to keep the user logged in in an ASP.Net MVC application, cookie or session ?     
asked by 07.03.2016 / 15:03