[linqbridge] 9 new revisions pushed by azizatif on 2012-04-16 20:11 GMT

1 view
Skip to first unread message

linqb...@googlecode.com

unread,
Apr 16, 2012, 4:12:19 PM4/16/12
to linqbridg...@googlegroups.com
9 new revisions:

Revision: a497be399e5d
Author: azizatif
Date: Mon Apr 16 12:26:47 2012
Log: Inlining CheckNotNull to reduce "Possible multiple enumeration of
IEnu...
http://code.google.com/p/linqbridge/source/detail?r=a497be399e5d

Revision: f177ba159bee
Author: azizatif
Date: Mon Apr 16 12:31:22 2012
Log: Favoring vars
http://code.google.com/p/linqbridge/source/detail?r=f177ba159bee

Revision: d970faedae5c
Author: azizatif
Date: Mon Apr 16 12:32:37 2012
Log: Text Template Transformation service insists
http://code.google.com/p/linqbridge/source/detail?r=d970faedae5c

Revision: 439940a073bc
Author: azizatif
Date: Mon Apr 16 12:35:22 2012
Log: Disable ReSharper InconsistentNaming warning for unit test case
names
http://code.google.com/p/linqbridge/source/detail?r=439940a073bc

Revision: f4135c7dbf39
Author: azizatif
Date: Mon Apr 16 12:45:45 2012
Log: Copyright year
http://code.google.com/p/linqbridge/source/detail?r=f4135c7dbf39

Revision: 71137f497bf2
Author: azizatif
Date: Mon Apr 16 13:01:27 2012
Log: Resetting Id keyword
http://code.google.com/p/linqbridge/source/detail?r=71137f497bf2

Revision: d2b7d519c62f
Author: azizatif
Date: Mon Apr 16 13:05:13 2012
Log: Adding missing Id keyword to ExtensionAttribute
http://code.google.com/p/linqbridge/source/detail?r=d2b7d519c62f

Revision: 8a0ccdbeab7c
Author: azizatif
Date: Mon Apr 16 13:09:55 2012
Log: Adding keyword expansion support
http://code.google.com/p/linqbridge/source/detail?r=8a0ccdbeab7c

Revision: 879237e4bdf7
Author: azizatif
Date: Mon Apr 16 13:11:15 2012
Log: Adding tail args to build script for MS Build
http://code.google.com/p/linqbridge/source/detail?r=879237e4bdf7

==============================================================================
Revision: a497be399e5d
Author: azizatif
Date: Mon Apr 16 12:26:47 2012
Log: Inlining CheckNotNull to reduce "Possible multiple enumeration of
IEnumerable" false negatives from R#
http://code.google.com/p/linqbridge/source/detail?r=a497be399e5d

Modified:
/src/Enumerable.cs
/src/Enumerable.g.cs
/src/Enumerable.g.tt

=======================================
--- /src/Enumerable.cs Mon Apr 16 12:04:29 2012
+++ /src/Enumerable.cs Mon Apr 16 12:26:47 2012
@@ -73,7 +73,7 @@
public static IEnumerable<TResult> Cast<TResult>(
this IEnumerable source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return CastYield<TResult>(source);
}
@@ -92,7 +92,7 @@
public static IEnumerable<TResult> OfType<TResult>(
this IEnumerable source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return OfTypeYield<TResult>(source);
}
@@ -154,7 +154,7 @@
this IEnumerable<TSource> source,
Func<TSource, bool> predicate)
{
- CheckNotNull(predicate, "predicate");
+ if (predicate == null) throw new
ArgumentNullException("predicate");

return source.Where((item, i) => predicate(item));
}
@@ -168,8 +168,8 @@
this IEnumerable<TSource> source,
Func<TSource, int, bool> predicate)
{
- CheckNotNull(source, "source");
- CheckNotNull(predicate, "predicate");
+ if (source == null) throw new ArgumentNullException("source");
+ if (predicate == null) throw new
ArgumentNullException("predicate");

return WhereYield(source, predicate);
}
@@ -192,7 +192,7 @@
this IEnumerable<TSource> source,
Func<TSource, TResult> selector)
{
- CheckNotNull(selector, "selector");
+ if (selector == null) throw new
ArgumentNullException("selector");

return source.Select((item, i) => selector(item));
}
@@ -206,8 +206,8 @@
this IEnumerable<TSource> source,
Func<TSource, int, TResult> selector)
{
- CheckNotNull(source, "source");
- CheckNotNull(selector, "selector");
+ if (source == null) throw new ArgumentNullException("source");
+ if (selector == null) throw new
ArgumentNullException("selector");

return SelectYield(source, selector);
}
@@ -230,7 +230,7 @@
this IEnumerable<TSource> source,
Func<TSource, IEnumerable<TResult>> selector)
{
- CheckNotNull(selector, "selector");
+ if (selector == null) throw new
ArgumentNullException("selector");

return source.SelectMany((item, i) => selector(item));
}
@@ -246,7 +246,7 @@
this IEnumerable<TSource> source,
Func<TSource, int, IEnumerable<TResult>> selector)
{
- CheckNotNull(selector, "selector");
+ if (selector == null) throw new
ArgumentNullException("selector");

return source.SelectMany(selector, (item, subitem) => subitem);
}
@@ -262,7 +262,7 @@
Func<TSource, IEnumerable<TCollection>> collectionSelector,
Func<TSource, TCollection, TResult> resultSelector)
{
- CheckNotNull(collectionSelector, "collectionSelector");
+ if (collectionSelector == null) throw new
ArgumentNullException("collectionSelector");

return source.SelectMany((item, i) =>
collectionSelector(item), resultSelector);
}
@@ -280,9 +280,9 @@
Func<TSource, int, IEnumerable<TCollection>>
collectionSelector,
Func<TSource, TCollection, TResult> resultSelector)
{
- CheckNotNull(source, "source");
- CheckNotNull(collectionSelector, "collectionSelector");
- CheckNotNull(resultSelector, "resultSelector");
+ if (source == null) throw new ArgumentNullException("source");
+ if (collectionSelector == null) throw new
ArgumentNullException("collectionSelector");
+ if (resultSelector == null) throw new
ArgumentNullException("resultSelector");

return SelectManyYield(source, collectionSelector,
resultSelector);
}
@@ -306,7 +306,7 @@
this IEnumerable<TSource> source,
Func<TSource, bool> predicate)
{
- CheckNotNull(predicate, "predicate");
+ if (predicate == null) throw new
ArgumentNullException("predicate");

return source.TakeWhile((item, i) => predicate(item));
}
@@ -320,8 +320,8 @@
this IEnumerable<TSource> source,
Func<TSource, int, bool> predicate)
{
- CheckNotNull(source, "source");
- CheckNotNull(predicate, "predicate");
+ if (source == null) throw new ArgumentNullException("source");
+ if (predicate == null) throw new
ArgumentNullException("predicate");

return TakeWhileYield(source, predicate);
}
@@ -364,7 +364,7 @@
this IEnumerable<TSource> source,
Func<TSource> empty)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");
Debug.Assert(empty != null);

var list = source as IList<TSource>; // optimized case for
lists
@@ -427,7 +427,7 @@
this IEnumerable<TSource> source,
Func<TSource> empty)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

var list = source as IList<TSource>; // optimized case for
lists
if (list != null)
@@ -498,7 +498,7 @@
this IEnumerable<TSource> source,
Func<TSource> empty)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

using (var e = source.GetEnumerator())
{
@@ -573,7 +573,7 @@
this IEnumerable<TSource> source,
int index)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

if (index < 0)
throw new ArgumentOutOfRangeException("index", index,
null);
@@ -601,7 +601,7 @@
this IEnumerable<TSource> source,
int index)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

if (index < 0)
return default(TSource);
@@ -620,7 +620,7 @@
public static IEnumerable<TSource> Reverse<TSource>(
this IEnumerable<TSource> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return ReverseYield(source);
}
@@ -644,7 +644,7 @@
this IEnumerable<TSource> source,
Func<TSource, bool> predicate)
{
- CheckNotNull(predicate, "predicate");
+ if (predicate == null) throw new
ArgumentNullException("predicate");

return source.SkipWhile((item, i) => predicate(item));
}
@@ -659,8 +659,8 @@
this IEnumerable<TSource> source,
Func<TSource, int, bool> predicate)
{
- CheckNotNull(source, "source");
- CheckNotNull(predicate, "predicate");
+ if (source == null) throw new ArgumentNullException("source");
+ if (predicate == null) throw new
ArgumentNullException("predicate");

return SkipWhileYield(source, predicate);
}
@@ -703,7 +703,7 @@
public static int Count<TSource>(
this IEnumerable<TSource> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

var collection = source as ICollection;
return collection != null
@@ -731,7 +731,7 @@
public static long LongCount<TSource>(
this IEnumerable<TSource> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

var array = source as Array;
return array != null
@@ -759,8 +759,8 @@
this IEnumerable<TSource> first,
IEnumerable<TSource> second)
{
- CheckNotNull(first, "first");
- CheckNotNull(second, "second");
+ if (first == null) throw new ArgumentNullException("first");
+ if (second == null) throw new ArgumentNullException("second");

return ConcatYield(first, second);
}
@@ -783,7 +783,7 @@
public static List<TSource> ToList<TSource>(
this IEnumerable<TSource> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return new List<TSource>(source);
}
@@ -818,7 +818,7 @@
this IEnumerable<TSource> source,
IEqualityComparer<TSource> comparer)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return DistinctYield(source, comparer);
}
@@ -902,9 +902,9 @@
Func<TSource, TElement> elementSelector,
IEqualityComparer<TKey> comparer)
{
- CheckNotNull(source, "source");
- CheckNotNull(keySelector, "keySelector");
- CheckNotNull(elementSelector, "elementSelector");
+ if (source == null) throw new ArgumentNullException("source");
+ if (keySelector == null) throw new
ArgumentNullException("keySelector");
+ if (elementSelector == null) throw new
ArgumentNullException("elementSelector");

var lookup = new Lookup<TKey, TElement>(comparer);

@@ -977,9 +977,9 @@
Func<TSource, TElement> elementSelector,
IEqualityComparer<TKey> comparer)
{
- CheckNotNull(source, "source");
- CheckNotNull(keySelector, "keySelector");
- CheckNotNull(elementSelector, "elementSelector");
+ if (source == null) throw new ArgumentNullException("source");
+ if (keySelector == null) throw new
ArgumentNullException("keySelector");
+ if (elementSelector == null) throw new
ArgumentNullException("elementSelector");

return ToLookup(source, keySelector, elementSelector,
comparer);
}
@@ -1011,9 +1011,9 @@
Func<TKey, IEnumerable<TSource>, TResult> resultSelector,
IEqualityComparer<TKey> comparer)
{
- CheckNotNull(source, "source");
- CheckNotNull(keySelector, "keySelector");
- CheckNotNull(resultSelector, "resultSelector");
+ if (source == null) throw new ArgumentNullException("source");
+ if (keySelector == null) throw new
ArgumentNullException("keySelector");
+ if (resultSelector == null) throw new
ArgumentNullException("resultSelector");

return ToLookup(source, keySelector, comparer).Select(g =>
resultSelector(g.Key, g));
}
@@ -1048,10 +1048,10 @@
Func<TKey, IEnumerable<TElement>, TResult> resultSelector,
IEqualityComparer<TKey> comparer)
{
- CheckNotNull(source, "source");
- CheckNotNull(keySelector, "keySelector");
- CheckNotNull(elementSelector, "elementSelector");
- CheckNotNull(resultSelector, "resultSelector");
+ if (source == null) throw new ArgumentNullException("source");
+ if (keySelector == null) throw new
ArgumentNullException("keySelector");
+ if (elementSelector == null) throw new
ArgumentNullException("elementSelector");
+ if (resultSelector == null) throw new
ArgumentNullException("resultSelector");

return ToLookup(source, keySelector, elementSelector, comparer)
.Select(g => resultSelector(g.Key, g));
@@ -1065,8 +1065,8 @@
this IEnumerable<TSource> source,
Func<TSource, TSource, TSource> func)
{
- CheckNotNull(source, "source");
- CheckNotNull(func, "func");
+ if (source == null) throw new ArgumentNullException("source");
+ if (func == null) throw new ArgumentNullException("func");

using (var e = source.GetEnumerator())
{
@@ -1102,9 +1102,9 @@
Func<TAccumulate, TSource, TAccumulate> func,
Func<TAccumulate, TResult> resultSelector)
{
- CheckNotNull(source, "source");
- CheckNotNull(func, "func");
- CheckNotNull(resultSelector, "resultSelector");
+ if (source == null) throw new ArgumentNullException("source");
+ if (func == null) throw new ArgumentNullException("func");
+ if (resultSelector == null) throw new
ArgumentNullException("resultSelector");

var result = seed;

@@ -1160,7 +1160,7 @@
this IEnumerable<TSource> source,
TSource defaultValue)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return DefaultIfEmptyYield(source, defaultValue);
}
@@ -1186,8 +1186,8 @@
this IEnumerable<TSource> source,
Func<TSource, bool> predicate)
{
- CheckNotNull(source, "source");
- CheckNotNull(predicate, "predicate");
+ if (source == null) throw new ArgumentNullException("source");
+ if (predicate == null) throw new
ArgumentNullException("predicate");

foreach (var item in source)
if (!predicate(item))
@@ -1203,7 +1203,7 @@
public static bool Any<TSource>(
this IEnumerable<TSource> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

using (var e = source.GetEnumerator())
return e.MoveNext();
@@ -1243,7 +1243,7 @@
TSource value,
IEqualityComparer<TSource> comparer)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

if (comparer == null)
{
@@ -1278,8 +1278,8 @@
IEnumerable<TSource> second,
IEqualityComparer<TSource> comparer)
{
- CheckNotNull(first, "frist");
- CheckNotNull(second, "second");
+ if (first == null) throw new ArgumentNullException("frist");
+ if (second == null) throw new ArgumentNullException("second");

comparer = comparer ?? EqualityComparer<TSource>.Default;

@@ -1308,7 +1308,7 @@
this IEnumerable<TSource> source,
Func<TSource, TSource, bool> lesser)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");
Debug.Assert(lesser != null);

if (typeof(TSource).IsClass) // ReSharper disable
CompareNonConstrainedGenericWithNull
@@ -1325,7 +1325,7 @@
this IEnumerable<TSource?> source,
TSource? seed, Func<TSource?, TSource?, bool> lesser) where
TSource : struct
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");
Debug.Assert(lesser != null);

return source.Aggregate(seed, (a, item) => lesser(a, item) ?
a : item);
@@ -1416,8 +1416,8 @@
Func<TSource, TKey> keySelector,
IComparer<TKey> comparer)
{
- CheckNotNull(source, "source");
- CheckNotNull(keySelector, "keySelector");
+ if (source == null) throw new ArgumentNullException("source");
+ if (keySelector == null) throw new
ArgumentNullException("keySelector");

return new OrderedEnumerable<TSource, TKey>(source,
keySelector, comparer, /* descending */ false);
}
@@ -1443,8 +1443,8 @@
Func<TSource, TKey> keySelector,
IComparer<TKey> comparer)
{
- CheckNotNull(source, "source");
- CheckNotNull(source, "keySelector");
+ if (source == null) throw new ArgumentNullException("source");
+ if (source == null) throw new
ArgumentNullException("keySelector");

return new OrderedEnumerable<TSource, TKey>(source,
keySelector, comparer, /* descending */ true);
}
@@ -1471,7 +1471,7 @@
Func<TSource, TKey> keySelector,
IComparer<TKey> comparer)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return source.CreateOrderedEnumerable(keySelector, comparer,
/* descending */ false);
}
@@ -1498,7 +1498,7 @@
Func<TSource, TKey> keySelector,
IComparer<TKey> comparer)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return source.CreateOrderedEnumerable(keySelector, comparer,
/* descending */ true);
}
@@ -1513,8 +1513,8 @@
IEqualityComparer<TSource> comparer,
bool flag)
{
- CheckNotNull(first, "first");
- CheckNotNull(second, "second");
+ if (first == null) throw new ArgumentNullException("first");
+ if (second == null) throw new ArgumentNullException("second");

var keys = new List<TSource>();
var nullFlag = false;
@@ -1648,9 +1648,9 @@
Func<TSource, TElement> elementSelector,
IEqualityComparer<TKey> comparer)
{
- CheckNotNull(source, "source");
- CheckNotNull(keySelector, "keySelector");
- CheckNotNull(elementSelector, "elementSelector");
+ if (source == null) throw new ArgumentNullException("source");
+ if (keySelector == null) throw new
ArgumentNullException("keySelector");
+ if (elementSelector == null) throw new
ArgumentNullException("elementSelector");

var dict = new Dictionary<TKey, TElement>(comparer);

@@ -1703,11 +1703,11 @@
Func<TOuter, TInner, TResult> resultSelector,
IEqualityComparer<TKey> comparer)
{
- CheckNotNull(outer, "outer");
- CheckNotNull(inner, "inner");
- CheckNotNull(outerKeySelector, "outerKeySelector");
- CheckNotNull(innerKeySelector, "innerKeySelector");
- CheckNotNull(resultSelector, "resultSelector");
+ if (outer == null) throw new ArgumentNullException("outer");
+ if (inner == null) throw new ArgumentNullException("inner");
+ if (outerKeySelector == null) throw new
ArgumentNullException("outerKeySelector");
+ if (innerKeySelector == null) throw new
ArgumentNullException("innerKeySelector");
+ if (resultSelector == null) throw new
ArgumentNullException("resultSelector");

var lookup = inner.ToLookup(innerKeySelector, comparer);

@@ -1748,22 +1748,15 @@
Func<TOuter, IEnumerable<TInner>, TResult> resultSelector,
IEqualityComparer<TKey> comparer)
{
- CheckNotNull(outer, "outer");
- CheckNotNull(inner, "inner");
- CheckNotNull(outerKeySelector, "outerKeySelector");
- CheckNotNull(innerKeySelector, "innerKeySelector");
- CheckNotNull(resultSelector, "resultSelector");
+ if (outer == null) throw new ArgumentNullException("outer");
+ if (inner == null) throw new ArgumentNullException("inner");
+ if (outerKeySelector == null) throw new
ArgumentNullException("outerKeySelector");
+ if (innerKeySelector == null) throw new
ArgumentNullException("innerKeySelector");
+ if (resultSelector == null) throw new
ArgumentNullException("resultSelector");

var lookup = inner.ToLookup(innerKeySelector, comparer);
return outer.Select(o => resultSelector(o,
lookup[outerKeySelector(o)]));
}
-
- [DebuggerStepThrough]
- private static void CheckNotNull<T>(T value, string name) where
T : class
- {
- if (value == null)
- throw new ArgumentNullException(name);
- }

private static class Sequence<T>
{
=======================================
--- /src/Enumerable.g.cs Sat Apr 30 12:58:58 2011
+++ /src/Enumerable.g.cs Mon Apr 16 12:26:47 2012
@@ -37,7 +37,7 @@
#endregion

// This partial implementation was template-generated:
- // Sat, 03 Oct 2009 09:42:39 GMT
+ // Mon, 16 Apr 2012 19:24:39 GMT

partial class Enumerable
{
@@ -48,7 +48,7 @@
public static int Sum(
this IEnumerable<int> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

int sum = 0;
foreach (var num in source)
@@ -77,7 +77,7 @@
public static double Average(
this IEnumerable<int> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

long sum = 0;
long count = 0;
@@ -116,7 +116,7 @@
public static int? Sum(
this IEnumerable<int?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

int sum = 0;
foreach (var num in source)
@@ -145,7 +145,7 @@
public static double? Average(
this IEnumerable<int?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

long sum = 0;
long count = 0;
@@ -184,7 +184,7 @@
public static int? Min(
this IEnumerable<int?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null), null, (min, x)
=> min < x);
}
@@ -209,7 +209,7 @@
public static int? Max(
this IEnumerable<int?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null),
null, (max, x) => x == null || (max != null && x.Value <
max.Value));
@@ -234,7 +234,7 @@
public static long Sum(
this IEnumerable<long> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

long sum = 0;
foreach (var num in source)
@@ -263,7 +263,7 @@
public static double Average(
this IEnumerable<long> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

long sum = 0;
long count = 0;
@@ -302,7 +302,7 @@
public static long? Sum(
this IEnumerable<long?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

long sum = 0;
foreach (var num in source)
@@ -331,7 +331,7 @@
public static double? Average(
this IEnumerable<long?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

long sum = 0;
long count = 0;
@@ -370,7 +370,7 @@
public static long? Min(
this IEnumerable<long?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null), null, (min, x)
=> min < x);
}
@@ -395,7 +395,7 @@
public static long? Max(
this IEnumerable<long?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null),
null, (max, x) => x == null || (max != null && x.Value <
max.Value));
@@ -420,7 +420,7 @@
public static float Sum(
this IEnumerable<float> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

float sum = 0;
foreach (var num in source)
@@ -449,7 +449,7 @@
public static float Average(
this IEnumerable<float> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

float sum = 0;
long count = 0;
@@ -488,7 +488,7 @@
public static float? Sum(
this IEnumerable<float?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

float sum = 0;
foreach (var num in source)
@@ -517,7 +517,7 @@
public static float? Average(
this IEnumerable<float?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

float sum = 0;
long count = 0;
@@ -556,7 +556,7 @@
public static float? Min(
this IEnumerable<float?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null), null, (min, x)
=> min < x);
}
@@ -581,7 +581,7 @@
public static float? Max(
this IEnumerable<float?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null),
null, (max, x) => x == null || (max != null && x.Value <
max.Value));
@@ -606,7 +606,7 @@
public static double Sum(
this IEnumerable<double> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

double sum = 0;
foreach (var num in source)
@@ -635,7 +635,7 @@
public static double Average(
this IEnumerable<double> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

double sum = 0;
long count = 0;
@@ -674,7 +674,7 @@
public static double? Sum(
this IEnumerable<double?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

double sum = 0;
foreach (var num in source)
@@ -703,7 +703,7 @@
public static double? Average(
this IEnumerable<double?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

double sum = 0;
long count = 0;
@@ -742,7 +742,7 @@
public static double? Min(
this IEnumerable<double?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null), null, (min, x)
=> min < x);
}
@@ -767,7 +767,7 @@
public static double? Max(
this IEnumerable<double?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null),
null, (max, x) => x == null || (max != null && x.Value <
max.Value));
@@ -792,7 +792,7 @@
public static decimal Sum(
this IEnumerable<decimal> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

decimal sum = 0;
foreach (var num in source)
@@ -821,7 +821,7 @@
public static decimal Average(
this IEnumerable<decimal> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

decimal sum = 0;
long count = 0;
@@ -860,7 +860,7 @@
public static decimal? Sum(
this IEnumerable<decimal?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

decimal sum = 0;
foreach (var num in source)
@@ -889,7 +889,7 @@
public static decimal? Average(
this IEnumerable<decimal?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

decimal sum = 0;
long count = 0;
@@ -928,7 +928,7 @@
public static decimal? Min(
this IEnumerable<decimal?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null), null, (min, x)
=> min < x);
}
@@ -953,7 +953,7 @@
public static decimal? Max(
this IEnumerable<decimal?> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null),
null, (max, x) => x == null || (max != null && x.Value <
max.Value));
=======================================
--- /src/Enumerable.g.tt Sat Apr 30 05:48:09 2011
+++ /src/Enumerable.g.tt Mon Apr 16 12:26:47 2012
@@ -92,7 +92,7 @@
public static <#= csType #> Sum(
this IEnumerable<<#= csType #>> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

<#= csBaseType #> sum = 0;
foreach (var num in source)
@@ -126,7 +126,7 @@
public static <#= csAvgType #> Average(
this IEnumerable<<#= csType #>> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

<#= csSumType #> sum = 0;
long count = 0;
@@ -166,7 +166,7 @@
public static <#= csType #> Min(
this IEnumerable<<#= csType #>> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null), null, (min, x)
=> min < x);
}
@@ -191,7 +191,7 @@
public static <#= csType #> Max(
this IEnumerable<<#= csType #>> source)
{
- CheckNotNull(source, "source");
+ if (source == null) throw new ArgumentNullException("source");

return MinMaxImpl(source.Where(x => x != null),
null, (max, x) => x == null || (max != null && x.Value <
max.Value));

==============================================================================
Revision: f177ba159bee
Author: azizatif
Date: Mon Apr 16 12:31:22 2012
Log: Favoring vars
http://code.google.com/p/linqbridge/source/detail?r=f177ba159bee

Modified:
/test/LINQBridge.Tests/EnumerableFixture.cs

=======================================
--- /test/LINQBridge.Tests/EnumerableFixture.cs Mon Apr 16 12:04:29 2012
+++ /test/LINQBridge.Tests/EnumerableFixture.cs Mon Apr 16 12:31:22 2012
@@ -1595,7 +1595,7 @@
{
var persons = Read(Person.CreatePersons());
var result = persons.OrderByDescending(p => p.Age);
- int age = 25;
+ var age = 25;
foreach (var person in result)
{
age--;
@@ -1666,7 +1666,7 @@
var persons = Read(Person.CreatePersons());
var result = persons.SelectMany(p =>
p.FirstName.ToCharArray());
var check = "PeterHerbertHubertIsidor".ToCharArray();
- int count = 0; // BUGBUG Collapse loop-based check with array
assertion!
+ var count = 0; // BUGBUG Collapse loop-based check with array
assertion!
foreach (var c in result)
{
Assert.That(c, Is.EqualTo(check[count]));
@@ -2131,7 +2131,7 @@
{
var source = Read("1", "2", "3");
var result = source.ToDictionary(s => int.Parse(s));
- int check = 1;
+ var check = 1;
foreach (var pair in result)
{
Assert.That(pair.Key, Is.EqualTo(check));
@@ -2146,7 +2146,7 @@
{
var source = Read(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
var result = source.ToDictionary(i => i.ToString(), i =>
Math.Sqrt(double.Parse(i.ToString())));
- int check = 1;
+ var check = 1;
foreach (var pair in result)
{
Assert.That(pair.Key, Is.EqualTo(check.ToString()));

==============================================================================
Revision: d970faedae5c
Author: azizatif
Date: Mon Apr 16 12:32:37 2012
Log: Text Template Transformation service insists
http://code.google.com/p/linqbridge/source/detail?r=d970faedae5c

Modified:
/src/LINQBridge.csproj

=======================================
--- /src/LINQBridge.csproj Mon Apr 16 08:51:59 2012
+++ /src/LINQBridge.csproj Mon Apr 16 12:32:37 2012
@@ -55,6 +55,7 @@
<Compile Include="Public.cs" />
</ItemGroup>
<ItemGroup>
+ <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
<Service Include="{B4F97281-0DBD-4835-9ED8-7DFB966E87FF}" />
</ItemGroup>
<ItemGroup>

==============================================================================
Revision: 439940a073bc
Author: azizatif
Date: Mon Apr 16 12:35:22 2012
Log: Disable ReSharper InconsistentNaming warning for unit test case
names
http://code.google.com/p/linqbridge/source/detail?r=439940a073bc

Modified:
/test/LINQBridge.Tests/EnumerableFixture.cs

=======================================
--- /test/LINQBridge.Tests/EnumerableFixture.cs Mon Apr 16 12:31:22 2012
+++ /test/LINQBridge.Tests/EnumerableFixture.cs Mon Apr 16 12:35:22 2012
@@ -66,6 +66,8 @@
tearDownAssertions();
System.Threading.Thread.CurrentThread.CurrentCulture =
initialCulture;
}
+
+ // ReSharper disable InconsistentNaming

[Test]
[ExpectedException(typeof(InvalidOperationException))]

==============================================================================
Revision: f4135c7dbf39
Author: azizatif
Date: Mon Apr 16 12:45:45 2012
Log: Copyright year
http://code.google.com/p/linqbridge/source/detail?r=f4135c7dbf39

Modified:
/build.cmd
/src/Action.cs
/src/DelegatingComparer.cs
/src/Enumerable.cs
/src/Enumerable.g.cs
/src/Enumerable.g.tt
/src/ExtensionAttribute.cs
/src/Func.cs
/src/IGrouping.cs
/src/ILookup.cs
/src/IOrderedEnumerable.cs
/src/Lookup.cs
/src/OrderedEnumerable.cs
/src/Properties/AssemblyInfo.cs
/src/Public.cs
/test/LINQBridge.Tests/EnumerableFixture.cs
/test/LINQBridge.Tests/Reader.cs
/test/LINQBridge.Tests/Tester.cs
/test/TestResultsWiki/CamelCase.cs
/test/TestResultsWiki/Program.cs
/test/TestResultsWiki/StringHelper.cs
/test/TestResultsWiki/TestCaseName.cs

=======================================
--- /build.cmd Wed Feb 8 12:39:26 2012
+++ /build.cmd Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
@echo off

REM LINQBridge
-REM Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+REM Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
REM
REM Author(s):
REM
=======================================
--- /src/Action.cs Tue Feb 7 18:44:21 2012
+++ /src/Action.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /src/DelegatingComparer.cs Mon Apr 16 08:51:59 2012
+++ /src/DelegatingComparer.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /src/Enumerable.cs Mon Apr 16 12:26:47 2012
+++ /src/Enumerable.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /src/Enumerable.g.cs Mon Apr 16 12:26:47 2012
+++ /src/Enumerable.g.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
@@ -37,7 +37,7 @@
#endregion

// This partial implementation was template-generated:
- // Mon, 16 Apr 2012 19:24:39 GMT
+ // Mon, 16 Apr 2012 19:42:10 GMT

partial class Enumerable
{
=======================================
--- /src/Enumerable.g.tt Mon Apr 16 12:26:47 2012
+++ /src/Enumerable.g.tt Mon Apr 16 12:45:45 2012
@@ -20,7 +20,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /src/ExtensionAttribute.cs Sat Apr 30 05:48:09 2011
+++ /src/ExtensionAttribute.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /src/Func.cs Tue Feb 7 18:44:21 2012
+++ /src/Func.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /src/IGrouping.cs Tue Feb 7 18:44:21 2012
+++ /src/IGrouping.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /src/ILookup.cs Sat Apr 30 12:58:58 2011
+++ /src/ILookup.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /src/IOrderedEnumerable.cs Sat Apr 30 12:58:58 2011
+++ /src/IOrderedEnumerable.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /src/Lookup.cs Sun May 1 03:29:19 2011
+++ /src/Lookup.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /src/OrderedEnumerable.cs Mon Apr 16 08:51:59 2012
+++ /src/OrderedEnumerable.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /src/Properties/AssemblyInfo.cs Sat Apr 30 05:52:39 2011
+++ /src/Properties/AssemblyInfo.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
@@ -34,7 +34,7 @@
[assembly: AssemblyDescription("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LINQBridge")]
-[assembly: AssemblyCopyright("Copyright (c) 2007-9, Atif Aziz, Joseph
Albahari. All rights reserved.")]
+[assembly: AssemblyCopyright("Copyright (c) 2007, Atif Aziz, Joseph
Albahari. All rights reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

=======================================
--- /src/Public.cs Tue Feb 7 18:44:21 2012
+++ /src/Public.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /test/LINQBridge.Tests/EnumerableFixture.cs Mon Apr 16 12:35:22 2012
+++ /test/LINQBridge.Tests/EnumerableFixture.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /test/LINQBridge.Tests/Reader.cs Sat Apr 30 05:48:09 2011
+++ /test/LINQBridge.Tests/Reader.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /test/LINQBridge.Tests/Tester.cs Sat Apr 30 05:48:09 2011
+++ /test/LINQBridge.Tests/Tester.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /test/TestResultsWiki/CamelCase.cs Sat Apr 30 05:48:09 2011
+++ /test/TestResultsWiki/CamelCase.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /test/TestResultsWiki/Program.cs Sat Apr 30 05:48:09 2011
+++ /test/TestResultsWiki/Program.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /test/TestResultsWiki/StringHelper.cs Sat Apr 30 05:48:09 2011
+++ /test/TestResultsWiki/StringHelper.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//
=======================================
--- /test/TestResultsWiki/TestCaseName.cs Sat Apr 30 05:48:09 2011
+++ /test/TestResultsWiki/TestCaseName.cs Mon Apr 16 12:45:45 2012
@@ -1,7 +1,7 @@
#region License, Terms and Author(s)
//
// LINQBridge
-// Copyright (c) 2007-9 Atif Aziz, Joseph Albahari. All rights reserved.
+// Copyright (c) 2007 Atif Aziz, Joseph Albahari. All rights reserved.
//
// Author(s):
//

==============================================================================
Revision: 71137f497bf2
Author: azizatif
Date: Mon Apr 16 13:01:27 2012
Log: Resetting Id keyword
http://code.google.com/p/linqbridge/source/detail?r=71137f497bf2

Modified:
/src/Action.cs
/src/Enumerable.cs
/src/Enumerable.g.cs
/src/Enumerable.g.tt
/src/Func.cs
/src/IGrouping.cs
/src/ILookup.cs
/src/IOrderedEnumerable.cs
/src/Lookup.cs
/src/OrderedEnumerable.cs
/src/Public.cs

=======================================
--- /src/Action.cs Mon Apr 16 12:45:45 2012
+++ /src/Action.cs Mon Apr 16 13:01:27 2012
@@ -25,7 +25,7 @@
//
#endregion

-// $Id: Action.cs 96c90603bdff 2011-04-30 12:48:09Z azizatif $
+// $Id$

namespace System
{
=======================================
--- /src/Enumerable.cs Mon Apr 16 12:45:45 2012
+++ /src/Enumerable.cs Mon Apr 16 13:01:27 2012
@@ -25,7 +25,7 @@
//
#endregion

-// $Id: Enumerable.cs c8b5b8ba1fbc 2011-04-30 19:06:40Z azizatif $
+// $Id$

namespace System.Linq
{
=======================================
--- /src/Enumerable.g.cs Mon Apr 16 12:45:45 2012
+++ /src/Enumerable.g.cs Mon Apr 16 13:01:27 2012
@@ -25,7 +25,7 @@
//
#endregion

-// $Id: Enumerable.g.cs 96c90603bdff 2011-04-30 12:48:09Z azizatif $
+// $Id$

namespace System.Linq
{
=======================================
--- /src/Enumerable.g.tt Mon Apr 16 12:45:45 2012
+++ /src/Enumerable.g.tt Mon Apr 16 13:01:27 2012
@@ -44,7 +44,7 @@
//
#endregion

-// $Id: Enumerable.g.tt 215 2009-10-03 13:31:49Z azizatif $
+// $Id$

namespace System.Linq
{
=======================================
--- /src/Func.cs Mon Apr 16 12:45:45 2012
+++ /src/Func.cs Mon Apr 16 13:01:27 2012
@@ -25,7 +25,7 @@
//
#endregion

-// $Id: Func.cs 96c90603bdff 2011-04-30 12:48:09Z azizatif $
+// $Id$

namespace System
{
=======================================
--- /src/IGrouping.cs Mon Apr 16 12:45:45 2012
+++ /src/IGrouping.cs Mon Apr 16 13:01:27 2012
@@ -25,7 +25,7 @@
//
#endregion

-// $Id: IGrouping.cs 96c90603bdff 2011-04-30 12:48:09Z azizatif $
+// $Id$

namespace System.Linq
{
=======================================
--- /src/ILookup.cs Mon Apr 16 12:45:45 2012
+++ /src/ILookup.cs Mon Apr 16 13:01:27 2012
@@ -25,7 +25,7 @@
//
#endregion

-// $Id: ILookup.cs 96c90603bdff 2011-04-30 12:48:09Z azizatif $
+// $Id$

namespace System.Linq
{
=======================================
--- /src/IOrderedEnumerable.cs Mon Apr 16 12:45:45 2012
+++ /src/IOrderedEnumerable.cs Mon Apr 16 13:01:27 2012
@@ -25,7 +25,7 @@
//
#endregion

-// $Id: IOrderedEnumerable.cs 96c90603bdff 2011-04-30 12:48:09Z azizatif $
+// $Id$

namespace System.Linq
{
=======================================
--- /src/Lookup.cs Mon Apr 16 12:45:45 2012
+++ /src/Lookup.cs Mon Apr 16 13:01:27 2012
@@ -25,7 +25,7 @@
//
#endregion

-// $Id: Lookup.cs c74eb37b988b 2011-04-30 14:13:04Z azizatif $
+// $Id$

namespace System.Linq
{
=======================================
--- /src/OrderedEnumerable.cs Mon Apr 16 12:45:45 2012
+++ /src/OrderedEnumerable.cs Mon Apr 16 13:01:27 2012
@@ -25,7 +25,7 @@
//
#endregion

-// $Id: OrderedEnumerable.cs 96c90603bdff 2011-04-30 12:48:09Z azizatif $
+// $Id$

namespace LinqBridge
{
=======================================
--- /src/Public.cs Mon Apr 16 12:45:45 2012
+++ /src/Public.cs Mon Apr 16 13:01:27 2012
@@ -25,7 +25,7 @@
//
#endregion

-// $Id: Public.cs 96c90603bdff 2011-04-30 12:48:09Z azizatif $
+// $Id$

using System.Collections.Generic;
namespace System.Linq

==============================================================================
Revision: d2b7d519c62f
Author: azizatif
Date: Mon Apr 16 13:05:13 2012
Log: Adding missing Id keyword to ExtensionAttribute
http://code.google.com/p/linqbridge/source/detail?r=d2b7d519c62f

Modified:
/src/ExtensionAttribute.cs

=======================================
--- /src/ExtensionAttribute.cs Mon Apr 16 12:45:45 2012
+++ /src/ExtensionAttribute.cs Mon Apr 16 13:05:13 2012
@@ -25,6 +25,8 @@
//
#endregion

+// $Id$
+
namespace System.Runtime.CompilerServices
{
/// <remarks>

==============================================================================
Revision: 8a0ccdbeab7c
Author: azizatif
Date: Mon Apr 16 13:09:55 2012
Log: Adding keyword expansion support
http://code.google.com/p/linqbridge/source/detail?r=8a0ccdbeab7c

Added:
/hgkwinit.cmd
Modified:
/src/Enumerable.g.cs

=======================================
--- /dev/null
+++ /hgkwinit.cmd Mon Apr 16 13:09:55 2012
@@ -0,0 +1,53 @@
+@echo off
+setlocal
+pushd "%~dp0"
+hg kwdemo 2>nul > nul
+if %errorlevel% neq 0 goto :nohgkwext
+if not exist .hg goto :norepo
+ver > nul
+if exist .hg\hgrc findstr keywordmaps .hg\hgrc > nul
+if errorlevel 1 (
+ call :addkws ^
+ && echo keyword expansion configured ^
+ && echo don't forget to `hg kwexpand`
+) else (
+ echo keywords appear already configured
+ echo don't forget to `hg kwexpand`
+)
+goto :EOF
+
+:norepo
+echo abort: no repository found in '%cd%' (.hg not found)!
+exit /b 1
+
+:nohgkwext
+echo hg not installed or not found in PATH!
+echo perhaps hg keyword extension is not enabled; see:
+echo http://mercurial.selenic.com/wiki/KeywordExtension
+exit /b 1
+
+:addkws
+setlocal
+call :hgrckw >> .hg\hgrc
+goto :EOF
+
+:hgrckw
+setlocal
+echo.
+echo [keyword]
+echo src/Action.cs=
+echo src/DelegatingComparer.cs=
+echo src/Enumerable.cs=
+echo src/Enumerable.g.tt=
+echo src/ExtensionAttribute.cs=
+echo src/Func.cs=
+echo src/IGrouping.cs=
+echo src/ILookup.cs=
+echo src/IOrderedEnumerable.cs=
+echo src/Lookup.cs=
+echo src/OrderedEnumerable.cs=
+echo src/Public.cs=
+echo.
+echo [keywordmaps]
+echo Id = {file^|basename} {node^|short} {date^|utcdate} {author^|user}
+goto :EOF
=======================================
--- /src/Enumerable.g.cs Mon Apr 16 13:01:27 2012
+++ /src/Enumerable.g.cs Mon Apr 16 13:09:55 2012
@@ -25,7 +25,7 @@
//
#endregion

-// $Id$
+// $Id: Enumerable.g.tt 71137f497bf2 2012/04/16 20:01:27 azizatif $

namespace System.Linq
{
@@ -37,7 +37,7 @@
#endregion

// This partial implementation was template-generated:
- // Mon, 16 Apr 2012 19:42:10 GMT
+ // Mon, 16 Apr 2012 20:05:53 GMT

partial class Enumerable
{

==============================================================================
Revision: 879237e4bdf7
Author: azizatif
Date: Mon Apr 16 13:11:15 2012
Log: Adding tail args to build script for MS Build
http://code.google.com/p/linqbridge/source/detail?r=879237e4bdf7

Modified:
/build.cmd

=======================================
--- /build.cmd Mon Apr 16 12:45:45 2012
+++ /build.cmd Mon Apr 16 13:11:15 2012
@@ -27,5 +27,5 @@
REM

for %%i in (Debug Release) do (
- "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild"
/p:Configuration=%%i "%~dp0LINQBridge.sln"
-)
+ "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild"
/p:Configuration=%%i "%~dp0LINQBridge.sln" %*
+)
Reply all
Reply to author
Forward
0 new messages