访问像javascript语言这样的c#类属性会让生活变得更轻松.
我们如何在C#中做到这一点?
例如:
someObject["Property"]="simple string"; Console.WriteLine(someObject["FirstName"]);
c# reflection indexer properties propertybag
c# ×1
indexer ×1
properties ×1
propertybag ×1
reflection ×1