Ejemplo n.º 1
0
 public static int Parse(string typeName, int defValue)
 {
     if ((typeName == null) || (typeName == ""))
     {
         return(defValue);
     }
     if (!TypeNameContainer <Type> .IsValidType(typeName))
     {
         Logger.Error(string.Format("Invalid Type {0} in {1}", typeName, typeof(Type)), new object[0]);
         return(defValue);
     }
     return(TypeNameContainer <Type> .GetTypeByName(typeName));
 }