private static bool TryGetInt32Key(IReadOnlyKeyValueCollection parameters, out Int32Key key) { if (parameters.TryGet("Type", out string type) && parameters.TryGet("ID", out int id)) { key = Int32Key.Create(id, type); return(true); } key = null; return(false); }
public void NotSupportedTypes() { KeyCollection keys = new KeyCollection(new string[] { "Product", "Category" }); keys.Add(Int32Key.Create(1, "PriceList")); }