private static bool TryGetStringKey(IReadOnlyKeyValueCollection parameters, out StringKey key)
        {
            if (parameters.TryGet("Type", out string type) && parameters.TryGet("Identifier", out string identifier))
            {
                key = StringKey.Create(identifier, type);
                return(true);
            }

            key = null;
            return(false);
        }
示例#2
0
        public void NotSupportedClasses()
        {
            KeyCollection keys = new KeyCollection(null, new Type[] { typeof(Int32Key), typeof(GuidKey) });

            keys.Add(StringKey.Create("1", "PriceList"));
        }