Questions tagged as 'c#'

2
answers

String Conversion to Double Asp.NET C #

I need to convert a String value (returned by the database) to Double but when I do this, it simply modifies the value. Example: bank returns 22.5, when converted to Double in 225.0. String val_serv = consultaserv[2].ToString(); Double buffer...
asked by 17.03.2014 / 20:39
1
answer

How to add a control dynamically in C #?

How to add a control to a ASP.NET page dynamically using C # ?     
asked by 17.04.2014 / 23:12
2
answers

How popular is a model from a DataReader in C #?

Sorry for ignoring this question. In PHP there was the possibility of using the "FetchClass" of the PDO that took all the results of a table and threw them into an object of a certain class, but I did not find anything similar in C #. By the D...
asked by 09.08.2017 / 05:54
1
answer

Can LINQ be considered a business rule?

Sometimes I pull active objects with LINQ expression. Using filtering with LINQ can be considered business rule and in a scenario like Domain-Driven Design (DDD))? What is the best place to use (in Domain services or in Infra repos...
asked by 28.01.2017 / 13:13
3
answers

How do I search and save a single field?

How can I fetch a single field from the table change it and save this field without having to fetch all fields from the table? The reason for this is simple, I have some tables that have more than 30 columns and this has a high cost of proces...
asked by 22.10.2016 / 23:35
1
answer

Why use private?

I'm learning variables public and private . If I create all the program code, what is the need to create a private variable? Being that enough I do not program a code that accesses the same one of another class. While r...
asked by 14.11.2016 / 21:26
1
answer

Check string Regex C #

I have a string that can only be composed of X uppercase and - . Example: X-XX-XX or X-X-X-XX-XXX . Where every - would count one group and each X one digit. Example 1: The string X-XX-XX has 3 g...
asked by 20.12.2016 / 19:57
1
answer

C # - Maintenance of Classes generated from xsd file

I'm developing an application that uses classes generated from xsd files made available by the federal recipe with xsd.exe . I use them to serialize xml files from the objects of these classes after performing validation of what has been popula...
asked by 04.10.2017 / 22:22
1
answer

Keep a certain frame within an android app

I'm trying to manipulate the frame rate within a unity scene, when I run it on the unity platform, it works with the given frame value I gave it. However, when I switch it to my phone, it varies from 25 to 30 fps. - > I already changed the...
asked by 21.09.2015 / 01:45
4
answers

Get the date and time your computer called

I would like a method to get the date and time the computer last connected to (c # windows form application).     
asked by 23.07.2015 / 14:05