GetString() public méthode

public GetString ( int val ) : string
val int
Résultat string
        public static string ExtractString(BinaryTable table, int recordVal, string defaultVal)
        {
            string ret = table.GetString(recordVal);

            if (string.IsNullOrEmpty(ret))
            {
                ret = defaultVal;
            }
            return(ret);
        }
Exemple #2
0
 static public int GetString(IntPtr l)
 {
     try {
         GameFramework.BinaryTable self = (GameFramework.BinaryTable)checkSelf(l);
         System.Int32 a1;
         checkType(l, 2, out a1);
         var ret = self.GetString(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }