System.Linq
3 отговора
0 прегледа
System.Linq
//
// Summary:
// Generates a sequence of integral numbers within a specified range.
//
// Parameters:
// start:
// The value of the first integer in the sequence.
//
// count:
// The number of sequential integers to generate.
//
// Returns:
// An IEnumerable<Int32> in C# or IEnumerable(Of Int32) in Visual Basic that
// contains a range of sequential integral numbers.
//
// Exceptions:
// System.ArgumentOutOfRangeException:
// count is less than 0.-or-start + count -1 is larger than System.Int32.MaxValue.
public static IEnumerable<int> Range(int start, int count);
Аре някой да ми обясни къв рейнд е това? Да им еба майката малоумна.
---
// Summary:
// Generates a sequence of integral numbers within a specified range.
//
// Parameters:
// start:
// The value of the first integer in the sequence.
//
// count:
// The number of sequential integers to generate.
//
// Returns:
// An IEnumerable<Int32> in C# or IEnumerable(Of Int32) in Visual Basic that
// contains a range of sequential integral numbers.
//
// Exceptions:
// System.ArgumentOutOfRangeException:
// count is less than 0.-or-start + count -1 is larger than System.Int32.MaxValue.
public static IEnumerable<int> Range(int start, int count);
Аре някой да ми обясни къв рейнд е това? Да им еба майката малоумна.
---
Re: System.Linq
ква точно е драмата?
Не печатат белезници по вестниците както М$, аз още сънувам кошмари от това!
Не печатат белезници по вестниците както М$, аз още сънувам кошмари от това!
Re: System.Linq
var onlyEven = Enumerable.Range(0, 200).Where(x => x % 2 == 0).ToList();
onlyEven.ForEach(x => Console.WriteLine(x));
Re: System.Linq
най-хитрото за мен все още е - string.Join(). колко е яко неща де ги има в скрипта от толко време да ги има и тук.
Ти за корав пич ли се имаш, или за мекушава путка? Само питам, каквото кажеш - това ще е!
Ти за корав пич ли се имаш, или за мекушава путка? Само питам, каквото кажеш - това ще е!