Questions tagged as '.net'

1
answer

Does a property take up space on the object?

I was reading a query about properties and saw that it is one or two methods at one time. Is there any additional cost in memory and processing in using it? If you do not use the code can you get more optimized?     
asked by 11.05.2017 / 16:11
1
answer

What is the difference between event and delegate?

I have already understood how delegate and event works, but I have not seen event utility. For example: public delegate void ChangedEventHandler(object sender, BaseEventArgs e); public ChangedEventHandler Changed; The c...
asked by 04.04.2015 / 17:37
3
answers

How to divide integers and get value with decimal part?

I'm trying to divide the following values into C #: Double media = 0.0; int soma = 7; int cont = 2; media = soma / cont; You are returning 3 .     
asked by 10.07.2017 / 15:51
4
answers

Reports with Asp.Net MVC

Hello, I would like to know some reporting options with Asp.Net MVC. I tried to use the ReportViewer but it is typed with the database and not used for objects. Would anyone have any suggestions? Thank you.     
asked by 26.10.2015 / 19:36
1
answer

Problem with Fast Colored TextBox (indentation)

I am modifying an open source project created by Pavel Torgashov, called Fast Colored TextBox, and am having problems with the VB language in the editor, since methods and properties are indented within Interfaces ...    Instead of lookin...
asked by 05.06.2015 / 07:10
3
answers

Using non-primitive variable type in C # can affect performance?

Using non-primitive variable type in C # can affect performance? I've seen a lot of code in which, instead of using primitive C # types, many use types similar to other languages that IDE supports. I already questioned a programmer why he...
asked by 30.01.2014 / 19:07
2
answers

Is there a way to save types not listed in Settings.Default?

In a Windows Forms application I can create configuration properties. HoweverthereisnotypeList<T>orDictionary<TKey,TValue>.Clicking"Browse" and searching mscorelib > System.Collections.Generics I see only the type KeyNotFoun...
asked by 01.01.2014 / 18:05
2
answers

Is Tuple the same thing as creating an object?

I've used Tuple a few times today came the doubt, this: public class User{ public String Name {get; set;} public String LastName {get; set;} } new User(){ Name = "Leonardo", LastName = "Bonetti" } Is it the same as...
asked by 13.08.2018 / 17:05
2
answers

Convert.ToString () and .ToString ()

Are there any glaring differences between them? Whether in performance or ways of treating, what are their particularities? What would be the correct way to use it (if there is any difference)?     
asked by 06.04.2016 / 20:03
3
answers

What is the difference between "decimal.Divide" and the traditional "/" in C #?

decimal a = 10/5; Returns 2 decimal b = decimal.Divide(10,5); Returns 2     
asked by 26.04.2016 / 23:45