7/30/2023 0 Comments Honey select update log![]() ![]() This being said, you should follow the given advice (by and use the appropriate way to access a dictionary's values. The other way would be to wrap a dictionary and define your own behaviour.īut this might also confuse you in the future if you use both, normal dictionaries and your custom dictionary, as you always need to keep that implementation detail in mind. So if you were to reference your custom dictionary as a normal dictionary, the indexer would suddenly act differently. ![]() The way to do it with that approach would be to derive from Dictionary like you've already done and hide the inherited indexer ( ) using the "new" keyword.īut I (personally) strongly recommend to not do it, as it changes the behaviour in an unexpected way. Click to expand.You shouldn't change the behaviour. ![]()
0 Comments
Leave a Reply. |