Questions tagged as 'interface'

1
answer

Interface, Layer Interconnection

Is the use of the interface only in the interconnection of layers? whenever I want to communicate for example the model layer with the presenter , will I need an interface?     
asked by 25.11.2014 / 12:01
1
answer

Convert an object that implements the interface, in its own interface

I made the following code: using System; public class Program { public static void Main() { //Este método funciona Metodo(new ClasseTeste(){ Obj = new Registro(){ Nome = "Nome Teste"}}); //Este não Met...
asked by 11.03.2018 / 18:57
1
answer

What is the serialVersionUID for?

If I do not declare this constant ( serialVersionUID ) in a class that implements the Serializable interface, I get a warning . But what does this constant serve, anyway? Does its value interfere with object serialization?     
asked by 27.01.2017 / 15:58
1
answer

How to compile .cpp codes that have separate interfaces and implementations in g ++?

I am studying C ++ for the book of Deitel , and I am trying to compile a program where we have a file gradebook.h which is the interface, gradebook.cpp which is the implementation and test_gradebook_header_file.cpp which i...
asked by 13.09.2016 / 05:55
1
answer

Get an Interface of a Type

I want to see if a Type is implemented by the System.IDirectOutput interface and access its methods, but I do not know how, I'm trying this: If GetType(IDirectOutput).IsAssignableFrom(Expression) Then Return CType(Expression, ID...
asked by 18.06.2015 / 01:40
1
answer

Implementing Interfaces

I have the abstract class ClasseA and 2 child classes ClasseB and ClasseC , then I have an interface IClasse that is implemented in ClasseA and ClasseB . In the interface I have the metodo1 method...
asked by 22.01.2015 / 18:46
1
answer

Generic Method of Finding, Using ADO.NET and Procedures

I'm looking for a solution from a generic repository for a DAL with a generic Find method, so there is no redundancy in my code. Using ADO.NET and Procedures. I found something on this link: Generic Subscription: List Selecionar(IEnum...
asked by 24.09.2014 / 00:59
0
answers

How to use interfaces like DbSet's in the Entity Framework in C #

Hello, I'm doing a solution where my entire business layer is in a separate project and in this project I created the relational layer structure from interfaces as shown in the example below: // interfaces de definição de características publ...
asked by 17.10.2018 / 14:14
0
answers

Simulate a mouse click using X11

I'm trying to simulate a mouse click using the X11 library on linux. Using the xev command on the terminal I have the following outputs. For a real click: ButtonPress event, serial 32, synthetic NO, window 0x2c00001, root 0xdb, subw...
asked by 15.01.2018 / 03:51
1
answer

PHP: Interface type attribute

I am doing a study of Project Patterns. My first pattern is Strategy, where I have an abstract class that has two attributes that should instantiate a class that implements a given interface. The interfaces: interface FlyBehavior { publ...
asked by 07.09.2017 / 17:53