プロパティとそれに関連する属性をコレクションまたはプロパティ セットとして取得することはできますか?
私が見ているオブジェクトのプロパティには、JSON.NET で使用するための属性があり、それらがすべて何であるかを調べたいと思います。その後、null でないものを見つけようとします。
サンプル オブジェクトは次のとおりです。
[JsonObject]
public class Conditions
{
[JsonProperty("opened_since")]
public DateTime? OpenedSince { get; set; }
[JsonProperty("added_until")]
public DateTime? AddedUntil { get; set; }
[JsonProperty("opened_until")]
public DateTime? OpenedUntil { get; set; }
[JsonProperty("archived_until")]
public DateTime? ArchivedUntil { get; set;
}