Questions tagged as 'c#-8'

1
answer

What is the use of default interface methods?

I was seeing some features proposed for C # 8 and I came across the default interface methods .    Add support for virtual extension methods - methods in interfaces with concrete implementations. So I understand it is to allow implementa...
asked by 07.09.2017 / 00:15
2
answers

Standard implementations in interface with C #

I was reading about the new features of C # 8 and I came across Default Interface Implentations , that is, standard implementations in interfaces. The code below exemplifies public interface IBankAccountManager{ void PerformTransaction(...
asked by 07.06.2018 / 18:41
1
answer

Doubt about Messagebox

I have a question about our famous MessageBox.Show(); , this command is about an event, method what would it be? Another question is about instantiating object, in the example below we are getting our login form and creating a variable...
asked by 29.04.2018 / 05:04
2
answers

Do you doubt about "insertion" of variables in the input command in C #?

Well, my question is, in C # I can use my "constants" be it of any kind on my output command, all normal. However, if I use a "variable" of type int or double and put them in the input command of a Syntax error:    "Convert t...
asked by 16.05.2018 / 04:01
1
answer

Error with login screen in C #

I'm trying to make a login screen with the following attributes If Login and password are the same as the typed data enter another if If the ADM (database) attribute is equal to "s" you should open the Main menu if not the meniPrincipa...
asked by 02.05.2018 / 22:35
0
answers

What is the best way to popular and link 3 Data Model Classes?

I have 3 Models that are populated by 3 procedures . Home Is there a smarter way to popular these and Models ? Models: public class Clientes { public int IdCliente { get; set; } public string Nome {...
asked by 22.03.2018 / 01:27