Questions tagged as '.net'

1
answer

Install SQLServer with the application

I am finalizing an application and will compile using Inno Setup . The system I am using SQLServer . I will install the system on other computers. Is the database installed on the computers that will receive the application or do I have...
asked by 07.08.2015 / 21:48
2
answers

Improve code performance in C #

I'm doing some testing with some C # code and during an analysis I realized that some high peaking problems happen when whole-valued conversions to string occur, in most cases the conversion happens like this: classe.valor.ToString("0.0")...
asked by 31.07.2015 / 16:57
1
answer

Exception when you will generate boleto bancário with Boleto.Net

I have a system that generates Santander tickets using a specific DLL that has been downloaded from the internet. The name is "Boleto.net". I need to create a Bradesco ticket. I changed where the Santander bank data passed to the Bradesco data,...
asked by 05.08.2015 / 14:27
3
answers

Breakpoint in visual studio does not load when debugging

I have a solution with 3 projects, one of them being Ex.utils and Ex.Api. Where the .dll of the utils project is referenced in Ex.Api in 'References'. Both compiled in the same .NET version. When you run the debug, the breakpoint, after count...
asked by 27.03.2018 / 17:56
1
answer

Why is the default of an access modifier "protected" in .NET?

Unless I'm wrong, the default when a modifier of a class is not defined, for example, is assumed to be protected : class LoremIpsum { ... } Is there any special reason for this? which?     
asked by 03.06.2014 / 23:34
2
answers

How to change the value of a property given its name

In my program I have some classes where data is stored. For example Class1.alfa.dado = 66; Class1.beta.dado = 56; Class1.gama.dado = 37; The user will select one of the options that you want to change in a ComboBox, in this ComboBox are the...
asked by 18.08.2014 / 14:38
1
answer

Reflection Emit, what's the use?

Passing a code to MVC, I saw that there was a Label label= new Label(); that was underlined with red, when clicking to see the suggestions, I saw the following: using System.Web.Ui.WebControls using System.Reflection.Emit I was won...
asked by 07.07.2014 / 18:00
2
answers

How to check if a class implements an interface, in C #?

How to check if a class implements an interface? For example, I want to include an if that checks whether an object is of type IDisposable. How to do? I tried something like: MinhaClasse meuObjeto = new MinhaClasse(); if...
asked by 25.08.2014 / 15:58
1
answer

What are the differences between the following casts and when to use each one?

   Casting   [...] process where one type of object is explicitly converted to another type, if conversion is allowed. Source: > Stack overflow in Portuguese Assuming the following situation: var i = 10 What are the di...
asked by 09.09.2016 / 00:51
2
answers

Convert String Value to Hexadecimal without changing format

I'm using the following code in a Class. public Int16 Endereco = 0x7302; byte[] Data = BitConverter.GetBytes(Endereco); Array.Reverse(Data); [...] I would like to receive the value for the Endereco variable of a String...
asked by 31.01.2017 / 12:25