/// <summary> /// 保存字段 /// </summary> private int SaveField() { string strDes = "", strDes1 = ""; foreach (Object Item in lbDes.Items) { strDes = strDes + Item.ToString() + ","; } foreach (Object Item1 in lbDes1.Items) { strDes1 = strDes1 + Item1.ToString() + ","; } string strSQL = "update t_BillImport set F_MasterField = '" + strDes + "',F_SlaverField = '" + strDes1 + "' where F_Type = '" + strType + "' and F_Class = '" + strClass + "'"; DataLib.DataHelper myDataHelper = new DataLib.DataHelper(); return(myDataHelper.ExecuteSQL(strSQL)); }
public override void Write(Utf8JsonWriter writer, Sintaksanalizilo.MalinflektaŜtupo value, JsonSerializerOptions options) { writer.WriteStartObject(); writer.WriteString("tipo", value.GetType().Name); switch (value.Tag) { case Sintaksanalizilo.MalinflektaŜtupo.Tags.Bazo: { var bazo = value as Sintaksanalizilo.MalinflektaŜtupo.Bazo; writer.WriteString("vorttipo", bazo !.Item1.ToString()); writer.WriteString("inflekcio", bazo !.Item2.ToString()); writer.WriteString("bazaVorto", bazo !.BazaVorto); break; } case Sintaksanalizilo.MalinflektaŜtupo.Tags.Nebazo: { var nebazo = value as Sintaksanalizilo.MalinflektaŜtupo.Nebazo; writer.WriteString("vorttipo", nebazo !.Item1.ToString()); writer.WriteString("inflekcio", nebazo !.Item2.ToString()); writer.WriteString("restantaVorto", nebazo !.RestantaVorto); break; } } writer.WriteEndObject(); }
public override string ToString() { if (Item1 is EmptyExpression <ItemT> && Item2 is EmptyExpression <ItemT> ) { return(string.Empty); } else if (Item1 is EmptyExpression <ItemT> ) { return(Item2.ToString()); } else if (Item2 is EmptyExpression <ItemT> ) { return(Item1.ToString()); } else if (HasNestedElements) { return($"({Item1} {opName} {Item2})"); } else { return($"{Item1} {opName} {Item2}"); } }
public override string ToString() { return(Item1.ToString() + " " + Item2.ToString() + " " + Item3.ToString()); }
public override int GetHashCode() { return((Item1.ToString() + Item2.ToString() + Item3.ToString()).GetHashCode()); }
public override string ToString() { return("{" + Item1.ToString() + "} - {" + Item2.ToString() + "}"); }
public override string ToString() => "<" + Item1.ToString() + "," + Item2.ToString() + ">";
/* * public static bool operator ==(Triplet<T1, T2, T3> tuple1, Triplet<T1, T2, T3> tuple2) * { * return tuple1.Equals(tuple2); * } * * public static bool operator !=(Triplet<T1, T2, T3> tuple1, Triplet<T1, T2, T3> tuple2) * { * try { * return !tuple1.Equals(tuple2); * } catch (NullReferenceException e) { * * } * * }*/ public override string ToString() { return("Triplet<" + typeof(T1) + ", " + typeof(T2) + ", " + typeof(T3) + ">(" + Item1.ToString() + ", " + Item2.ToString() + ", " + Item3.ToString() + ")"); }
public override string ToString() { return(string.Format("{0}\t{1}", Item1.ToString(), Item2.ToString())); }
public override string ToString() { return($"{Item1.ToString()} -> {Item2.ToString()}"); }
public override string ToString() { return($"({Item1?.ToString()}, {Item2?.ToString()})"); }
public override string ToString() { String Moves = ""; String Levels = ""; for (int i = 0; i < MoveLevels.Length; i++) { Moves = Moves + MoveList[i].ToString() + "¶"; Levels = Levels + MoveLevels[i].ToString() + "¶"; } Moves = Moves + "65535"; Levels = Levels + "65535" + "¶"; return(ID + "¶" + Name + "¶" + BaseHP.ToString() + "¶" + BaseAttack.ToString() + "¶" + BaseDefense.ToString() + "¶" + BaseSpecialAttack.ToString() + "¶" + BaseSpecialDefense.ToString() + "¶" + BaseSpeed.ToString() + "¶" + ((int)LevelingType).ToString() + "¶" + FormID.ToString() + "¶" + GenderValue.ToString() + "¶" + ((int)Type1).ToString() + "¶" + ((int)Type2).ToString() + "¶" + CatchRate.ToString() + "¶" + ExpYield.ToString() + "¶" + EffortYield.ToString() + "¶" + Item1.ToString() + "¶" + Item2.ToString() + "¶" + Ability1.ToString() + "¶" + Ability2.ToString() + "¶" + Ability3.ToString() + "¶" + DexEntry + "¶" + Levels + Moves); }
/* * public static bool operator ==(Pair<T1, T2> pair1, Pair<T1, T2> pair2) * { * return pair1.Equals(pair2); * } * * public static bool operator !=(Pair<T1, T2> pair1, Pair<T1, T2> pair2) * { * return !pair1.Equals(pair2); * } */ public override string ToString() { return("Pair<" + typeof(T1) + ", " + typeof(T2) + ">(" + Item1.ToString() + ", " + Item2.ToString() + ")"); }
public override string ToString() { return(Item1.ToString().Substring(0, 1) + Item2.ToString().Substring(0, 1)); }
public string ToString(string format) { return(string.Format("{0}\t{1}", Item1.ToString(format), Item2.ToString(format))); }
public override string ToString() { return("<" + Item1.ToString() + "," + Item2.ToString() + ">"); }
protected override string RunInternalPart2(string input) { var matrix = GetMatrix(input); return(GoToNext(matrix, GetStart(matrix), (1, 0), new List <char>()).Item1.ToString()); }