public Grid(int x, int y) { X = x; Y = y; Set = new MySet<IP>[X, Y]; for (var i = 0; i < X; i++) { for (var j = 0; j < Y; j++) { Set[i, j] = new MySet<IP>(); } } }
public TEntity Attach(TEntity e) { return(MySet.Attach(e)); }
public TEntity Add(TEntity e) { return(MySet.Add(e)); }
public Strana(Igrac igrac, MySet <Borac> borci) { this.Borci = borci; this.Igrac = igrac; }
public ResultSet(alldatatypetable.IRecord resultSet) { var r = resultSet; PrimaryKeyColumn = r.PrimaryKeyColumn; TimestampColumn = r.TimestampColumn; CharColumn = r.CharColumn; VarCharColumn = r.VarCharColumn; BitColumn = r.BitColumn; TinyIntColumn = r.TinyIntColumn; SmallIntColumn = r.SmallIntColumn; MediumIntColumn = r.MediumIntColumn; IntColumn = r.IntColumn; BigIntColumn = r.BigIntColumn; TinyIntUnsignedColumn = r.TinyIntUnsignedColumn; SmallIntUnsignedColumn = r.SmallIntUnsignedColumn; MediumIntUnsignedColumn = r.MediumIntUnsignedColumn; IntUnsignedColumn = r.IntUnsignedColumn; BigIntUnsignedColumn = r.BigIntUnsignedColumn; FloatColumn = r.FloatColumn; DoubleColumn = r.DoubleColumn; DecimalColumn = r.DecimalColumn; NumericColumn = r.NumericColumn; DateColumn = r.DateColumn; DateTimeColumn = r.DateTimeColumn; TimeColumn = r.TimeColumn; YearColumn = r.YearColumn; BinaryColumn = r.BinaryColumn; VarBinaryColumn = r.VarBinaryColumn; TinyBlobColumn = r.TinyBlobColumn; MediumBlobColumn = r.MediumBlobColumn; BlobColumn = r.BlobColumn; LongBlobColumn = r.LongBlobColumn; TinyTextColumn = r.TinyTextColumn; MediumTextColumn = r.MediumTextColumn; TextColumn = r.TextColumn; LongTextColumn = r.LongTextColumn; GeometryColumn = r.GeometryColumn; EnumColumn = r.EnumColumn; SetColumn = r.SetColumn; NotNullCharColumn = r.NotNullCharColumn; NotNullVarCharColumn = r.NotNullVarCharColumn; NotNullBitColumn = r.NotNullBitColumn; NotNullTinyIntColumn = r.NotNullTinyIntColumn; NotNullSmallIntColumn = r.NotNullSmallIntColumn; NotNullMediumIntColumn = r.NotNullMediumIntColumn; NotNullIntColumn = r.NotNullIntColumn; NotNullBigIntColumn = r.NotNullBigIntColumn; NotNullTinyIntUnsignedColumn = r.NotNullTinyIntUnsignedColumn; NotNullSmallIntUnsignedColumn = r.NotNullSmallIntUnsignedColumn; NotNullMediumIntUnsignedColumn = r.NotNullMediumIntUnsignedColumn; NotNullIntUnsignedColumn = r.NotNullIntUnsignedColumn; NotNullBigIntUnsignedColumn = r.NotNullBigIntUnsignedColumn; NotNullFloatColumn = r.NotNullFloatColumn; NotNullDoubleColumn = r.NotNullDoubleColumn; NotNullDecimalColumn = r.NotNullDecimalColumn; NotNullNumericColumn = r.NotNullNumericColumn; NotNullDateColumn = r.NotNullDateColumn; NotNullDateTimeColumn = r.NotNullDateTimeColumn; NotNullTimeColumn = r.NotNullTimeColumn; NotNullYearColumn = r.NotNullYearColumn; NotNullBinaryColumn = r.NotNullBinaryColumn; NotNullVarBinaryColumn = r.NotNullVarBinaryColumn; NotNullTinyBlobColumn = r.NotNullTinyBlobColumn; NotNullTinyTextColumn = r.NotNullTinyTextColumn; NotNullBlobColumn = r.NotNullBlobColumn; NotNullTextColumn = r.NotNullTextColumn; NotNullMediumBlobColumn = r.NotNullMediumBlobColumn; NotNullMediumTextColumn = r.NotNullMediumTextColumn; NotNullLongBlobColumn = r.NotNullLongBlobColumn; NotNullLongTextColumn = r.NotNullLongTextColumn; NotNullGeometryColumn = r.NotNullGeometryColumn; NotNullEnumColumn = r.NotNullEnumColumn; NotNullSetColumn = r.NotNullSetColumn; }
public override Set <Entry <K, V> > EntrySet() { Set <Entry <K, V> > xset = new MySet <Entry <K, V> >(); return(xset); }
public virtual Value GetVariableValue(Variable variable) { string name = variable.Name; if (name.Length <= REGEX_GROUP_VARNAME_PREFIX.Length || !name.StartsWith(REGEX_GROUP_VARNAME_PREFIX)) { return(null); } name = name.Substring(REGEX_GROUP_VARNAME_PREFIX.Length); Group group; if (Char.IsDigit(name[0])) { try { int idx = Convert.ToInt32(name); if (idx < 0 || idx >= m_GroupNumbers.Length) { // someone might have used a group name like "30" when we have only 4 groups... group = m_GroupCollection[name]; } else { // someone might have used a group name like "30" when we have only 4 groups... // In this case the item "30" is placed somewhere at the end of our m_GroupNumbers array. if (m_GroupNumbers[idx] != idx) { return(null); } group = m_GroupCollection[idx]; if (!group.Success) { // The group exists but capturing it wasn't successful. return(m_UnsuccessfulGroupCaptureValue); } return(new StringValue(group.Value)); } } catch (System.Exception) { group = m_GroupCollection[name]; } } else { group = m_GroupCollection[name]; } if (group.Success) { return(new StringValue(group.Value)); } if (m_GroupNameSet == null) { m_GroupNameSet = new MySet <string>(m_GroupNames); } if (!m_GroupNameSet.Contains(name)) { return(null); } // The group exists but it capturing it wasn't successful. return(m_UnsuccessfulGroupCaptureValue); }