Esempio n. 1
0
        public static MetadatumNamedParameter <T> GetNamedParameter <T>(this IEnumerable <MetadatumNamedParameter> series, string name)
        {
            var element = series.Where(k => k.MemberName == name && k.Value is T).FirstOrDefault();

            if (element.IsEmpty)
            {
                return(MetadatumNamedParameter <T> .Empty);
            }
            return(MetadatumNamedParameter.ToKnownNamedParameter <T>(element));
        }
Esempio n. 2
0
 public static bool operator ==(MetadatumNamedParameter <T> left, MetadatumNamedParameter right)
 {
     return(left == MetadatumNamedParameter.ToKnownNamedParameter <T>(right));
 }