Ah the joys of working in a team
-
After long though i decided to share this wonderful gem in c# Today cannot get "better".
/// Get value that corresponds to menu name or menu id. /// Menu name. /// Menu id. /// enum value. public enumType GetValueByInfo(string name, string id) { enumType result = enumDictionary\[id\]; return result; }
And the enumDictionary is just declared Dictionary with (string, enumType) pairs The names are changed. This beautiful thing is written in c# from someone else than me, a colleague who worked longer than me in the firm. He is working mainly with c# projects i am working mainly with vc++ and MFC(oh the joy) When i have to change something my boss always says to me to write it in the same manner like the things are done in the project. The worst part is this gem is written in my dll (the dll i should be working but all other are adding things but me) I hate when someone else is touching my code.
Microsoft ... the only place where VARIANT_TRUE != true
-
After long though i decided to share this wonderful gem in c# Today cannot get "better".
/// Get value that corresponds to menu name or menu id. /// Menu name. /// Menu id. /// enum value. public enumType GetValueByInfo(string name, string id) { enumType result = enumDictionary\[id\]; return result; }
And the enumDictionary is just declared Dictionary with (string, enumType) pairs The names are changed. This beautiful thing is written in c# from someone else than me, a colleague who worked longer than me in the firm. He is working mainly with c# projects i am working mainly with vc++ and MFC(oh the joy) When i have to change something my boss always says to me to write it in the same manner like the things are done in the project. The worst part is this gem is written in my dll (the dll i should be working but all other are adding things but me) I hate when someone else is touching my code.
Microsoft ... the only place where VARIANT_TRUE != true
haha awesome! I would be interested to see, in the places where this is being called, the variety of values being supplied for name.
Well fads they come and fads they go. And God I love that rock and roll! Well the point was fast but it was too blunt to miss. Life handed us a paycheck, we said, "We worked harder than this!"
-
haha awesome! I would be interested to see, in the places where this is being called, the variety of values being supplied for name.
Well fads they come and fads they go. And God I love that rock and roll! Well the point was fast but it was too blunt to miss. Life handed us a paycheck, we said, "We worked harder than this!"
-
After long though i decided to share this wonderful gem in c# Today cannot get "better".
/// Get value that corresponds to menu name or menu id. /// Menu name. /// Menu id. /// enum value. public enumType GetValueByInfo(string name, string id) { enumType result = enumDictionary\[id\]; return result; }
And the enumDictionary is just declared Dictionary with (string, enumType) pairs The names are changed. This beautiful thing is written in c# from someone else than me, a colleague who worked longer than me in the firm. He is working mainly with c# projects i am working mainly with vc++ and MFC(oh the joy) When i have to change something my boss always says to me to write it in the same manner like the things are done in the project. The worst part is this gem is written in my dll (the dll i should be working but all other are adding things but me) I hate when someone else is touching my code.
Microsoft ... the only place where VARIANT_TRUE != true
Time to institute code reviews. :) /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
Time to institute code reviews. :) /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
:thumbsup: /ravi
My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com
-
I would like to see this working with a string which is not set as key in the dictionary. :laugh:
Microsoft ... the only place where VARIANT_TRUE != true