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

mapFacets() public static méthode

public static mapFacets ( Pod pod, FAttrs ffacets ) : Facets
pod Pod
ffacets Fanx.Fcode.FAttrs
Résultat Facets
        public static Facets mapFacets(Pod pod, FAttrs.FFacet[] ffacets)
        {
            if (ffacets == null || ffacets.Length == 0) return empty();
              Hashtable map = new Hashtable();
              for (int i=0; i<ffacets.Length; ++i)
              {
            FAttrs.FFacet ff = ffacets[i];
            Type t = pod.findType(ff.type);
            map[t] = ff.val;
              }
              return new Facets(map);
        }

Usage Example

Exemple #1
0
        /// <summary>
        /// Map fcode field to a sys::Field.
        /// </summary>
        private Field map(FPod fpod, FField f)
        {
            string name      = String.Intern(f.m_name);
            Type   fieldType = m_pod.findType(f.m_type);
            Facets facets    = Facets.mapFacets(m_pod, f.m_attrs.m_facets);

            return(new Field(this, name, f.m_flags, facets, f.m_attrs.m_lineNum, fieldType));
        }
All Usage Examples Of Fan.Sys.Facets::mapFacets