Questions tagged as '.net'

2
answers

Write and retrieve information in files

How do I write data to a file and then retrieve it? I have an enrollment system. Start a folder in Windows and within it I generate the registrations sequentially. I finish and go home and the next day, I will generate new set of registrati...
asked by 21.07.2015 / 13:53
3
answers

What are the advantages of working with Fluent Interface with LINQ?

What are the advantages of working with a fluent interface with LINQ? I have this code: Employees.cs namespace LinqConsulta { class Empregados : List<Empregado> { public Empregados Lista() { this.Add...
asked by 07.06.2016 / 19:29
2
answers

How to list only the name of the folders in a given directory

How can I do to list only the name of a folder that is inside a root folder? Example: Pasta raiz C:/Downloads SubPastas: Teste/ Teste 2 InmyDLLIcanlistthefoldershoweverwiththeirfullpath,Iwouldjustliketolistthenameofthesubfolders:Incase...
asked by 08.05.2018 / 16:24
1
answer

Create list of Actions with parameters and then execute it

I would like to create a list of Actions with parameters and then make a foreach in that list and exit executing the methods, each with their respective parameters. Something more or less with the code below. private List<Action&...
asked by 21.02.2018 / 22:17
2
answers

What can I use to replace input hidden in ASP NET MVC?

I have a difficult mission to pass a system of webforms to MVC, the system with webforms has many input hiddens that store basic information like session hash and user code, but as I, in my humble opinion, think half insecure and even laborious...
asked by 30.06.2014 / 14:26
2
answers

Adjust the layout of the Form according to the resolution of the monitor

I made a form in fullScreen , where the monitor I use has 23 inches. But where the feature will be deployed, they use 19 ". When I ran, Form was not the smallest monitor size, and some components were cut. Is there any way to be re...
asked by 22.11.2017 / 14:41
1
answer

Cast Forms with interface [closed]

I wanted to know what are the possibilities (but which is the most appropriate) to do an interface cast. public class ClasseTeste1 : IMinhaInterface { ... } public class ClasseTeste2 : IMinhaInterface { ... } See in the example that I'm usi...
asked by 01.02.2017 / 14:56
2
answers

Select where in in LINQ

How to convert the code select down into LINQ? select * from producao where id not in (select idProducao from bpi)     
asked by 17.02.2017 / 14:45
2
answers

Should I ensure that threads end in Dispose?

Some questions about the interface IDisposable and using already exist, for example: What types of features are released in a using statement I should always use the dispose I'm still not sure what to do about threads...
asked by 07.11.2016 / 15:18
3
answers

How to convert date in dd / mm / yyyy format?

Once I published my app, I started getting the dates in American format like this: 9/14/2016 12:00:00 AM How to format for dd/MM/yyyy ? I tried convert.ToDateTime() more does not work.     
asked by 14.09.2016 / 18:11