XmlSerializer deserializer = new XmlSerializer(typeof(MyTypr));
[XmlElement]
[XmlRoot("...")]
там еще что-то с array есть.
RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
DataColumn.AutoIncrement
, тут. Оно само будет увеличивать на шаг, который вы задали. unsigned int myAdd(unsigned int a, unsigned int b)
{
unsigned int carry = a & b;
unsigned int result = a ^ b;
while(carry != 0)
{
unsigned int shiftedcarry = carry << 1;
carry = result & shiftedcarry;
result ^= shiftedcarry;
}
return result;
}
let obj1 : obj = upcast (...)
match obj1 with
| :? ISomeInterface -> (do something)
| _ -> ()
type MixedType =
| Tup of int * int // a tuple
| P of Person // use the record type defined above
| L of int list // a list of ints
| U of IntOrBool // use the union type defined above
static IEnumerable<string> ReadLines(string filename)
{
using (TextReader reader = File.OpenText(filename))
{
string line;
while ((line = reader.ReadLine()) != null)
{
yield return line;
}
}
}