Since Dictionary objects are Reference type themselves
Is it meaningless to pass Dictionary to method by ref !
this method MUST edit the dictionary items and add new items as well
Those dictionary objects are Global and they are used in all of my app classes and forms
Does Dictionary objects are passed to the methods by ref by default?
As example consider this method defintion:
internal static void GetUserData(ref Dictionary<string,int> UserNameIdDictionary) {...}
I use this dictionary to store User Name/ID data which will be retrieved from SQL Server Database this Dictionary will allow the use of these data from The whole application
Side Note/Question Does it wrong approach storing the retrieved data inside dictionary objects [from performance perspective] ?