草庐IT

DeclaringTypeName

全部标签

c# - 如何从 MongoDB 文档中字典中的对象检索属性?

我们的Mongo数据如下所示:{"_id":ObjectId("542d881b8bc641bbee1f8509"),"ExtendedProperties":{"Context":{"_t":"LoggingContext","DeclaringTypeName":"EndpointConfig"}}}在C#代码中,ExtendedProperties表示如下:publicclassLogEntry{publicIDictionaryExtendedProperties{get;set;}}我已经尝试了所有我能找到的方法来查询DeclaringTypeName的值。似乎没有任何效果,