Questions tagged as '.net'

1
answer

Python language format function in C #

int varvalor; int var01 = varvalor * 1; Console.Write("Digite um número para ser multiplicado: "); var01 = Convert.ToInt32 (Console.ReadLine()); Console.WriteLine(); I wanted to write in Console.WriteLine(); these lines of code that is...
asked by 13.02.2018 / 00:39
1
answer

Problems in declaring a structure

I am creating a simple Poker game, in this game I defined that the cards would be structs . According to my business rules, each card has a value , a name and a suit . The Valor property corresponds to the range of 2 to 14 (this...
asked by 25.02.2018 / 23:01
1
answer

NHibernate consuming lots of memory

I have an application that connects to the database via NHibernate , so some operations are performed as Save, Update e Delete . But when performing these procedures it is incredible how memory accumulation is done by not automatical...
asked by 19.02.2018 / 18:51
1
answer

Keep stack trace when method rethrows the captured exception

I ran an application in Visual Studio Code Analysis and in several methods I received the following message:    CA2200 Rethrow to preserve stack   details 'fooBLO.FooMethod (DataProjectDTO, string)' rethrows a caught   exception and specifies...
asked by 19.02.2018 / 15:57
1
answer

Share enum of a web service with the client

I created a web service where you have enumerators to keep track of an integer attribute, I would like to know how I can access this enumerator from another project in which I am using this web service. Edit:     
asked by 14.03.2018 / 17:30
1
answer

What is the difference between Table and Matrix and List in Report View?

So far in my reports I have been using tables and binding my datasets to those. But today I had to use a List to create a card (I'm still trying to understand how it works). When to use Table, Matrix and List and their differences?...
asked by 16.02.2018 / 12:27
1
answer

The .NET Framework 4.7.1 or a later update has already been installed on the computer

When trying to install the newer version of .net, an error occurred informing:    Installation will not take place. See the reasons below.       Details       The .NET Framework 4.7.1 or a later update has already been installed on the comp...
asked by 13.12.2017 / 12:38
1
answer

How to pass and traverse an anonymous object in a method

How can I pass an anonymous object to a method, and then traverse it? What I'm trying to do is the following: public static string QueryStringToUrl(string url, Dictionary<string, string> query) { var uriBuilder = new UriBuilder(ur...
asked by 21.01.2018 / 19:30
1
answer

Dictionarystring, string or NameValueCollection?

What's the difference in using Dictionary<string, string> and NameValueCollection ? I searched, but only found in English in the SOpt same, I used the translator, but the translation was strange and I did not understand.     
asked by 22.01.2018 / 02:58
1
answer

DataConnectionDialog giving error in Visual Studio 2017

I am migrating to a Visual Studio 2017 a legacy project that uses a modal window to collect connection data to the database and format a connection string. The code below displays an error: var dialog = new DataConnectionDialog();    C...
asked by 22.12.2017 / 20:57