I've been working away (http://tinyurl.com/m4hzjb) on this Fluent API for instantiating ASP.NET controls and feel I now have something that appears to work well. I'm looking for some feedback and opinions... good, bad or indifferent. Would you find this useful? Any technical issues you foresee? Room for improvement?
Here's a very basic ...
I know with OO Perl I can have objects and inheritance, but are interfaces implemented? If so, how are they enforced?
...
Hi all
Just wondering if you're able to help me with my problem. This has probably come about by my not knowing the right keywords to search for.
This is not homework, just anonymised...
I have an interface and a bunch of implementing classes:
interface Fruit
Banana implements Fruit
Apple implements Fruit
....
I have a Fruit ...
I have an interface for a variety of classes, all of which should implement Iterator, so I have something like
public interface A extends Iterable<A> { ...otherMethods()... }
For the concrete classes, however, this means I must use
public class B implements A { public Iterator<A> iterator() {...} }
when I'd prefer (or at least, thi...
I found this: http://www.ndesign-studio.com/blog/design/css-dock-menu/
My problem, however, is that when setting
I’ve tried everything, but I can’t get the toolbar to be FIXED to the bottom of the screen. I.e. If the page has enough text to scroll, the icons don’t stick to the bottom when you scroll.
I got as far as setting #dock2’s ...
Hi guys
I have the following:
[ServiceContract]
[ServiceKnownType(typeof(ActionParameters))]
[ServiceKnownType(typeof(SportProgram))]
[ServiceKnownType(typeof(ActionResult<SportProgram>))]
public interface ISportProgramBl
{
[OperationContract]
IActionResult<ISportProgram> Get(IActionParameters parameters);
}
When I run the ...
I am new to enumerating collections so forgive if this question sounds silly.
I have an class
public class PersonStuff : IPersonStuff, IEnumerable<User>
{
Person person = new Person();
...
IEnumerator<Person> IEnumerable<Person>.GetEnumerator()
{
return (person as IEnumerable<Person>).Ge...
Hi
In my implementation I have a preprocessor definition that specifies the
operating system the application is running on, e.g. OS_WIN or OS_LINUX.
In a header file, I have defined the interface, that is the same for each operating
system.
//interface.h:
void functionA();
void functionB();
I also have the implementations for the i...
I have created a simple UIView hierarchy in IB:
Parent (UIView)
child (UIView)
child (UIView)
child (UIButton)
The button sits atop the two sibling UIViews.
My app launches in landscape mode rather then portrait. When the only child view is a UIButton, the button correctly rotates 90 deg. However, when I add the child UIViews th...
When come to create an interface, do u create it based on behavior, follow the -able standard, e.g.
interface Comparable
interface Enumerable
interface Listable
interface Talkable
interface Thinkable
Or based on object, e.g.
interface Comparator
interface Enumerator
interface List
interface Human
And why?
UPDATE
This question is ...
I can't figure out the use for this code. Of what use is this pattern?
[code repeated here for posterity]
public class Turtle<T> where T : Turtle<T>
{
}
...
Hello,
I have this interface:
public interface IValidationCRUD
{
public ICRUDValidation IsValid(object obj);
private void AddError(ICRUDError error);
}
But when I use it (Implement Interface, automatic generation of code), I get this:
public class LanguageVAL : IValidationCRUD
{
public ICRUDValidation IsValid(object o...
I understand that I cannot add preconditions on an interface implementation. I have to create a contract class where I define contracts on elements that are seen by the interface.
But in the following case, how can add a contract on an internal state of the implementation that is therefore not known at the interface definition level ?
...
I'm working on an application which stores data in tables, similar to an RDBMS. I'm looking for a way to let my users query this data using SQL. Ideally, I'd like to do this without having to implement my own SQL parser, query optimizer, etc. So far, ripping parts out of something like Apache Derby is looking like the best option, but...
I want open source assemblies with interfaces (but no implementations) of common things, such as logging, IoC/DI, etcetera. If this exists, it would be easier to mix and match bits and pieces of things together without having to write too much glue code.
Example: If this existed, I would be able to for example create a asp.net mvc appli...
Hi, what are the benefits of implementing an interface in C# 3.5 ?
...
If I have an object that implements an interface, it maps the interface methods automatically onto the class's methods with the same name and signature by default. Is there any way to override this and map an interface method onto a method with the same signature but a different name? (This could be useful, for example, if I implement ...
According to the definition :
"As interface is not an object by itself ,I can't initialize it.If interface were allowed to declare fileds, then it needs storage location,so we can not declare fields inside interface."
Incase of property say example
when i declare
string SayHello { get; set; }
inside the interface
It is in...
Hi,
I'm having the following interfaces:
public interface IBase
{
int id1 { get; set; }
}
public interface IDerived : IBase
{
int id2 { get; set; }
}
And the following (sample) program:
class Program
{
static void Main(string[] args)
{
IList<IDerived> derived = null;
Check(derived);
}
sta...
I have a class that implements properties in a specific way, to handle some custom requirements for our business logic system.
This "specific way" makes the properties non-operational in the context of data binding. Basically, if I drop an object of our class onto a form, data binding finds nothing on the object, and the property inspec...