Questions tagged as 'c#'

2
answers

How to implement an abstract method in a child class?

I abstracted a method from a class also abstract. But I'm not sure how to implement this method in the child class. Here's my code, what do I get? using System; using System.Collections.Generic; using System.Linq; using System.Text; nam...
asked by 09.04.2014 / 22:46
2
answers

How to do a zip search in VB

How do I collect address data (Street, City, Neighborhood, Street) for a site, referring to the input Cep using VB ? I have a similar code in C# I see two alternatives: Translate the code to VB Run the c# c...
asked by 21.04.2014 / 19:41
2
answers

Parameter passing between pages

How to pass parameter between pages in Windows Phone 8 .1? In the previous version it was done like this: Page 1: private void Button_Click(object sender, RoutedEventArgs e) { string uri = string.Format("/Pagina2.xaml?nomeParame...
asked by 28.11.2014 / 18:09
3
answers

Do not allow space in maskedTextBox

No windowsforms what is the simplest way to avoid typing spaces in a maskedTextBox control?     
asked by 16.12.2014 / 12:47
1
answer

What aspects-oriented programming frameworks exist for .NET? [closed]

Researching about aspect-oriented programming , I found a framework that implements this paradigm, the PostSharp . But this tool is paid for some features. Does anyone know anything else?     
asked by 16.09.2014 / 05:21
2
answers

Is the calculation of RENAVAN correct? Can you improve something?

Hello, I'm searching the internet and found on this site a C # code for how to calculate RENAVAM, I moved a bit, but I can not find anywhere that explains how RENAVAM calculation really works so I do not know if this logic is correct. Code...
asked by 07.01.2016 / 17:09
2
answers

C # Read TXT file and delete

Good afternoon, I'm developing a program that reads a certain file (contains more than 60k of lines) removes unnecessary use and organizes and writes to another file. using (StreamReader leitor = new StreamReader(lerArquivo)) { while (!leit...
asked by 20.12.2018 / 18:27
1
answer

What is the most efficient way to get an Entity property?

I'm using EF6 and would like to know how to get the best performance by redeeming a single property from a Entity . Assuming the following case:    Let's say I need to fetch all names from a 5000-line user table. User.c...
asked by 20.12.2018 / 19:18
3
answers

How to create a musical player in C #?

I'm creating a music player in C #. The design part ( sliders , volume bar, etc.) is all created, but the code is missing! How can I make the music system so that when I click on the play it plays the song, pause the music and stop > stop...
asked by 29.01.2014 / 15:31
1
answer

How do I calculate with 3 variables of type DateTime?

I have these 4 variables: public System.DateTime TempoOtimista { get; set; } public System.DateTime TempoProvavel { get; set; } public System.DateTime TempoPessimista { get; set; } public System.DateTime TempoRevisado { get; set; } TempoRevis...
asked by 14.10.2015 / 03:21