Exemplo n.º 1
0
 public bool setValue(String str, DXType type)
 {
     Debug.Assert(str != null);
     return setValue(str, type.getType());
 }
        /// <summary>
        /// Remove (and free) the type in the list that matches t
        /// </summary>
        /// <param name="t"></param>
        /// <returns></returns>
        public bool removeType(DXType t)
        {
            if (typeStrings != null)
                typeStrings = null;

            foreach (DXType dxtype in types)
            {
                if (dxtype.getType() == t.getType())
                {
                    bool r = this.types.Remove(dxtype);
                    Debug.Assert(r);
                    return true;
                }
            }
            return false;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Determines whether the specified string is a valid string value
 /// of the specified type (of DXType constant).
 /// </summary>
 /// <param name="str"></param>
 /// <param name="type"></param>
 /// <returns></returns>
 public static bool IsValidValue(String str, DXType type)
 {
     Debug.Assert(str != null);
     return IsValidValue(str, type.getType());
 }
Exemplo n.º 4
0
 /// <summary>
 /// Returns true if the source and destination types match; false otherwise.
 /// </summary>
 /// <param name="source"></param>
 /// <param name="destination"></param>
 /// <returns></returns>
 public static bool MatchType(DXType source, DXType destination)
 {
     return MatchType(source.getType(), destination.getType());
 }