Questions tagged as '.net'

2
answers

Reducing interface with Disposable

I saw an example implementation of a interface with Disposable which I think is redundant and would like to know if I'm right. Here is an example to illustrate: public interface IClassBase<TEntity> where TEntity : class...
asked by 04.10.2016 / 04:14
2
answers

Return Enum C #

I have the following enum: public enum TNFeInfNFeDetImpostoICMSICMS00CST { /// <remarks/> [System.Xml.Serialization.XmlEnumAttribute("00")] item00 = 00, } How do I "get" the value "00" of the enum in question? I alr...
asked by 20.09.2016 / 14:33
2
answers

Error trying to deserialize JSON from a webpage

I'm using Luis.ai to create my neural network of intents and the Microsoft Bot Framework to create my chatbot, but I can not read a json that Luis is generating for me. Luis's class: public static async Task<LuisResult> GetResponse(st...
asked by 27.08.2017 / 04:04
2
answers

Generate text file from an application console application

I need to tailor this method of an application Windows Forms link to Console Application , that is, instead of using the object saveFileDialog.ShowDialog() I have to create the file using another method of class Stream...
asked by 10.03.2016 / 01:41
2
answers

Local database (serveless) not modifiable with update

Scenery: I'm developing a small application WinForm in C# to distribute to sellers to assemble their budgets faster and would like to store simple information such as budget issued and registered customers. Well, until today...
asked by 16.10.2015 / 15:18
2
answers

Which database is ideal for my scenario?

I am developing a commercial automation system (C # and Windows Forms) that can be installed on one or more machines on the same local network. I've also done the mobile part of the system, where you can place requests through any device th...
asked by 31.05.2016 / 06:11
2
answers

Vector gets method return

I'm putting together a program in C # and I've created a method called Supply that receives a vector called number and returns it. The idea is that the supply function creates random values, populates the vector and returns it filled for the mai...
asked by 30.05.2016 / 20:19
2
answers

How to read numbers from a txt file in C #? [closed]

This is an example file: 2 0.03159527 0.1990048 0.9794891 0.02173799 0.9969404 0.07508247 The first number indicates how many lines are, for each line there are always three numbers I tried to do something like this: Vector3[] Load...
asked by 21.07.2017 / 22:40
2
answers

Populate DataSet with DataTable

In C #, how do I declare and populate a DataSet with a DataTable? My idea is to pass the resulting data from a query in the Database to the DataSet, then fill a Report with that DataSet. Is it possible?     
asked by 10.10.2014 / 15:02
2
answers

Decimal variable removing the decimal places

I have a variable in decimal that receives a value from a textbox , but when this variable receives the value with decimal places it removes the decimal place and stores the value without it. p> What happens: TextBox value: 2.5;...
asked by 27.01.2015 / 13:15