Questions tagged as '.net'

2
answers

Memory leak in XmlSerializer

I have the code below. Since the method is static and XmlSerializer does not implement Dispose , every method call, the system heaps in memory or GC garbage collector ) can clear this variable ? And in the case of c...
asked by 27.10.2015 / 17:21
2
answers

Fill all fields of an Object in an iterative way

I have a Class public class Objeto { public int _numero { get; set; } public DateTime _data { get; set; } public string _palavra { get; set; } public decimal _decimal { get; set; } } Is it possible to do what I want with the...
asked by 05.03.2015 / 16:15
1
answer

What is the System.Void type

Until then I thought void was just a keyword to indicate a non-return method, but then I found System.Void on MSDN. Does that change anything?     
asked by 18.02.2015 / 04:21
1
answer

How to create formulas at runtime in C #?

There are many advantages when things change for the better, so were the changes from Clipper to Delphi and C #, in fact just the visual part. There was in Clipper a fantastic feature called MACRO SUBSTITUTION. Well, in Clipper it was possibl...
asked by 19.01.2016 / 23:35
2
answers

How to count .xls / .xlsx files in the folder with C #?

I have a FolderBrowserDialog and when I select the folder it shows the files quantity (all, without filter). How do I do this length only with Excel files (.xls, .xlsx). The following is the code below: FolderBrowserDialog fbd = new Fol...
asked by 29.08.2014 / 15:21
3
answers

Search for word in the first array column [closed]

How do I search for a word in all rows, but only in the first column of an array that will always increase in size? string[,] array = new string[1,6]{{"texto","","","","",""}}; if(array[array.Length, 0].Contains("texto")){...
asked by 17.10.2016 / 00:26
2
answers

How to transform a method into a class?

I have the following in a form: public form1() { InitializeComponent(); this.FormClosing += new FormClosingEventHandler(this.confirmarFechamento_FormClosing); } private void confirmarFechamento_FormClosing(object sender, FormClosingEve...
asked by 21.03.2014 / 05:23
5
answers

How do I get the number of weeks in a date range in C #?

I would like to know how to know the number of weeks in a given date range in C #.     
asked by 17.02.2014 / 21:03
1
answer

Scheduled Tasks on the Web

In Google Inbox, you can create reminders and postpone them to a certain date and time. The reminder is then taken from the main screen and when that exact date and time arrives it returns to the. In this way, the system schedules a task fo...
asked by 20.11.2014 / 21:21
2
answers

How to implement an interface to guarantee a specific contract?

I need to make an interface implement a list of a certain type: public class ITrade<T> { public int date { get; set; } public double price { get; set; } public double amount { get; set; } public string type { get; set; }...
asked by 01.04.2018 / 20:47