Permalink
Browse files

Format whitespace

  • Loading branch information...
1 parent be6d2ff commit a0245f0e28b04115d704152765c0b73d24b8655a @cdhowie committed Jun 27, 2011
@@ -1,7 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
-// Information about this assembly is defined by the following attributes.
+// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle("Cdh.Toolkit.BuildTasks")]
@@ -19,7 +19,7 @@
[assembly: AssemblyVersion("1.0.*")]
-// The following attributes are used to specify the signing key for the assembly,
+// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]
@@ -1,21 +1,21 @@
-//
+//
// WriteGitCommit.cs
-//
+//
// Author:
// Chris Howie <me@chrishowie.com>
-//
+//
// Copyright (c) 2010 Chris Howie
-//
+//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
-//
+//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
-//
+//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -49,7 +49,7 @@ public override bool Execute()
string head;
using (var headFile = File.OpenText(Path.Combine(Repository, "HEAD")))
head = headFile.ReadLine();
-
+
if (head.StartsWith("ref: ")) {
string refPath = head.Substring(5).Replace('/', Path.DirectorySeparatorChar);
@@ -32,106 +32,106 @@
namespace Cdh.Toolkit.Collections
{
- internal class CollectionWrapper<T> : ICollection<T>, ICollection
- {
- private ICollection<T> wrapped;
+ internal class CollectionWrapper<T> : ICollection<T>, ICollection
+ {
+ private ICollection<T> wrapped;
- public CollectionWrapper(ICollection<T> collection)
- {
- if (collection == null)
- throw new ArgumentNullException("collection");
+ public CollectionWrapper(ICollection<T> collection)
+ {
+ if (collection == null)
+ throw new ArgumentNullException("collection");
- wrapped = collection;
- }
+ wrapped = collection;
+ }
- #region ICollection<T> Members
+ #region ICollection<T> Members
- public void Add(T item)
- {
- wrapped.Add(item);
- }
+ public void Add(T item)
+ {
+ wrapped.Add(item);
+ }
- public void Clear()
- {
- wrapped.Clear();
- }
+ public void Clear()
+ {
+ wrapped.Clear();
+ }
- public bool Contains(T item)
- {
- return wrapped.Contains(item);
- }
+ public bool Contains(T item)
+ {
+ return wrapped.Contains(item);
+ }
- public void CopyTo(T[] array, int arrayIndex)
- {
- wrapped.CopyTo(array, arrayIndex);
- }
+ public void CopyTo(T[] array, int arrayIndex)
+ {
+ wrapped.CopyTo(array, arrayIndex);
+ }
- public int Count
- {
- get { return wrapped.Count; }
- }
+ public int Count
+ {
+ get { return wrapped.Count; }
+ }
- public bool IsReadOnly
- {
- get { return wrapped.IsReadOnly; }
- }
+ public bool IsReadOnly
+ {
+ get { return wrapped.IsReadOnly; }
+ }
- public bool Remove(T item)
- {
- return wrapped.Remove(item);
- }
+ public bool Remove(T item)
+ {
+ return wrapped.Remove(item);
+ }
- #endregion
+ #endregion
- #region IEnumerable<T> Members
+ #region IEnumerable<T> Members
- public IEnumerator<T> GetEnumerator()
- {
- return wrapped.GetEnumerator();
- }
+ public IEnumerator<T> GetEnumerator()
+ {
+ return wrapped.GetEnumerator();
+ }
- #endregion
+ #endregion
- #region IEnumerable Members
+ #region IEnumerable Members
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetEnumerator();
- }
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
- #endregion
+ #endregion
- #region ICollection Members
+ #region ICollection Members
- void ICollection.CopyTo(Array array, int index)
- {
- if (array == null)
- throw new ArgumentNullException("array");
+ void ICollection.CopyTo(Array array, int index)
+ {
+ if (array == null)
+ throw new ArgumentNullException("array");
- if (index < 0)
- throw new ArgumentOutOfRangeException("index", index, "Must be >= 0.");
+ if (index < 0)
+ throw new ArgumentOutOfRangeException("index", index, "Must be >= 0.");
- if (array.Length - index > wrapped.Count)
- throw new ArgumentOutOfRangeException("index", index, "The destination array is too small to copy into at the index provided.");
+ if (array.Length - index > wrapped.Count)
+ throw new ArgumentOutOfRangeException("index", index, "The destination array is too small to copy into at the index provided.");
- var elementType = array.GetType().GetElementType();
- if (!elementType.IsAssignableFrom(typeof(T)))
- throw new ArgumentException("The array's element type is not compatible with this collection's element type.", "array");
+ var elementType = array.GetType().GetElementType();
+ if (!elementType.IsAssignableFrom(typeof(T)))
+ throw new ArgumentException("The array's element type is not compatible with this collection's element type.", "array");
- foreach (var thing in wrapped)
- array.SetValue(thing, index++);
- }
+ foreach (var thing in wrapped)
+ array.SetValue(thing, index++);
+ }
- bool ICollection.IsSynchronized
- {
- get { return false; }
- }
+ bool ICollection.IsSynchronized
+ {
+ get { return false; }
+ }
- object ICollection.SyncRoot
- {
- get { return wrapped; }
- }
+ object ICollection.SyncRoot
+ {
+ get { return wrapped; }
+ }
- #endregion
- }
+ #endregion
+ }
}
Oops, something went wrong.

0 comments on commit a0245f0

Please sign in to comment.