Exemple #1
0
        }                                                                                                                                            //mxd. Added "stripquotes" parameter

        public string GetPropertyValueString(string propname, int valueindex, bool stripquotes)
        {
            if (props.ContainsKey(propname) && (props[propname].Count > valueindex))
            {
                return(stripquotes ? ZDTextParser.StripQuotes(props[propname][valueindex]) : props[propname][valueindex]);
            }
            if (!skipsuper && (baseclass != null))
            {
                return(baseclass.GetPropertyValueString(propname, valueindex, stripquotes));
            }
            return("");
        }
Exemple #2
0
 /// <summary>
 /// This returns a specific value of a specific property as a string. Returns an empty string when the propery does not have the specified value.
 /// </summary>
 public string GetPropertyValueString(string propname, int valueindex)
 {
     if (props.ContainsKey(propname) && (props[propname].Count > valueindex))
     {
         return(props[propname][valueindex]);
     }
     else if (!skipsuper && (baseclass != null))
     {
         return(baseclass.GetPropertyValueString(propname, valueindex));
     }
     else
     {
         return("");
     }
 }