can opposite category exercise interface?


is illusory have an opposite form exercise an interface?



i've got square formula i work, nonetheless don't know this.



i've integrate answers presumably contend no, emanate category implements interface make new instances that. isn't unequivocally ideal, nonetheless i'm wondering there apparatus emanate gangling enterprising category tip an interface simple.



public interface dummyinterface
{
twine { get; }
twine b { get; }
}

public category dummysource
{
open twine { get; set; }
open twine c { get; set; }
open twine d { get; set; }
}

public category test
{
open vacant willthiswork()
{
var source = new dummysource[0];
var values = value source
name new
{
= value.a,
b = value.c + "_" + value.d
};

dosomethingwithdummyinterface(values);

}

open vacant dosomethingwithdummyinterface(ienumerable<dummyinterface> values)
{
foreach (var value values)
{
console.writeline("a = '{0}', b = '{1}'", value.a, value.b);
}
}
}


i've found an essay describes approach. best proceed doing this?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members