Last week we had an intra team challenge. Our manager offered to put on the apron and grill some bbq if we hit some phenomenal bug fixing goal he set. We strapped ourselves to the seats in our offices and took up the gauntlet. Glad to inform you that we succeeded and I hope he makes something good and make us feel that it was worth the sleepless ride last week.
Here is a question I received from Bryan Rieger… click here
Bind Dependency?
Click here and this page gives a good explanation of bind dependency.
Here is an example we will use…
generic<typename T>
public ref class Collection{};
public ref class Class1
{
Collection<float> myFloatCollection;
};
Answering Bryan’s questions…
Would the Collection<T> be modeled as a parameterized class?
Yes. To view the parameterized class... click here
If it is modeled as a parameterized class, will you be supporting bind dependency?
Yes. In the Class Designer shown in the link, you right click on field FloatCollection and select “Show as Association”. To view the UML equivalent bind dependency created… click here
Here is my own follow up question…
If we model templates and generics as parameterized classes how do we differentiate them in the model?
I created a template class called Container. I have juxtaposed the Collection generic class and the template Container class on the designer. They both show as parameterized classes but check out the title right after the class name… click here