Esempio n. 1
0
        public bool TryGet(AreaTypeName name, out AreaType type)
        {
            if (Events.TryGet(name, out var e))
            {
                type = e;
            }
            else if (Topics.TryGet(name, out var topic))
            {
                type = topic;
            }
            else if (Queries.TryGet(name, out var query))
            {
                type = query;
            }
            else
            {
                type = null;
            }

            return(type != null);
        }
Esempio n. 2
0
 public bool CanAssign(AreaType type) =>
 Is(type.DeclaredType);
Esempio n. 3
0
 public bool Is(AreaType type) =>
 Is(type.DeclaredType);