design pattern needed (for C#)
-
I'm lookin for a design-pattern that match what I need: I have class A which should hold a collection of class B or its inehrited classes. class B should be able to run functions and access properties on A and A should be able to run functions and access properties on B. I've been suggested to pass reference of As properties to B opon construction, but I'm lookin for the design-pattern... anyone know of any design-pattern similar to this? Thanks alot :) NaNg.
-
I'm lookin for a design-pattern that match what I need: I have class A which should hold a collection of class B or its inehrited classes. class B should be able to run functions and access properties on A and A should be able to run functions and access properties on B. I've been suggested to pass reference of As properties to B opon construction, but I'm lookin for the design-pattern... anyone know of any design-pattern similar to this? Thanks alot :) NaNg.
It's called the Charlie Foxtrot design pattern.
Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
-
It's called the Charlie Foxtrot design pattern.
Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
-
are you sure? (or are you just teasing me?) :x I can't find in google some info about it. Can you maybe give me a link for more info about it?
-
I'm lookin for a design-pattern that match what I need: I have class A which should hold a collection of class B or its inehrited classes. class B should be able to run functions and access properties on A and A should be able to run functions and access properties on B. I've been suggested to pass reference of As properties to B opon construction, but I'm lookin for the design-pattern... anyone know of any design-pattern similar to this? Thanks alot :) NaNg.
If they're that closely related they should implement a common interface that has the methods and properties that need to be shared in it.
public class A : C
{
}public class B : C
{
}public interface C
{
// Common implementation here.
}Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus) -
The word gullible is written on your ceiling. Check it out.