/// <summary> /// 创建一个FString /// </summary> /// <param name="str">字符串</param> /// <returns>创建后的FString</returns> public static FString CreateString(String str) { if (null == str) { return(null); } HashID id = str.GetHashCode(); return(new FString(str, id)); }
private FString(String str, HashID id) { mName = str; mID = id; }
/// <summary> /// 创建一个FString /// </summary> /// <param name="hash_id">哈希码</param> /// <returns>创建后的FString</returns> public static FString CreateString(HashID hash_id) { return(new FString(null, hash_id)); }