can i add string builder object to a dictionary object?
If yes please code it.
i mean i have a dictionary in which i have already added a few (string, objects),
And i have a string Builder which has few variable already added now i want that instead of passing 2 different object in a method i want to pass only one object so can i add string builder object to same method as well
You can add a StringBuilder to a
Dictionary<K,V>object, but as it’s a Dictionary, you will need a key.