Fan.Sys.Facets.get C# (CSharp) Méthode

get() private méthode

private get ( Type type, bool check ) : Facet
type Type
check bool
Résultat Facet
        public Facet get(Type type, bool check)
        {
            object val = m_map[type];
              if (val is Facet) return (Facet)val;
              if (val is string)
              {
            Facet f = decode(type, (string)val);
            m_map[type] = f;
            return f;
              }
              if (check) throw UnknownFacetErr.make(type.qname()).val;
              return null;
        }