Browse files

minor edits

  • Loading branch information...
1 parent 267d4b2 commit c3dd8e55c415cf795c8002074ac80a83e5f243be @fearthecowboy fearthecowboy committed Apr 26, 2011
Showing with 4 additions and 4 deletions.
  1. +3 −3 Extensions/LinqExtensions.cs
  2. +1 −1 Trace/File.cs
View
6 Extensions/LinqExtensions.cs
@@ -12,12 +12,12 @@ namespace CoApp.Toolkit.Extensions {
public static class LinqExtensions {
public static IEnumerable<T> Traverse<T>(this IEnumerable<T> source, Func<T, IEnumerable<T>> recurseFunction) {
- foreach(T item in source) {
+ foreach(var item in source) {
yield return item;
- IEnumerable<T> enumerable = recurseFunction(item);
+ var enumerable = recurseFunction(item);
if(enumerable != null) {
- foreach(T itemRecurse in Traverse(enumerable, recurseFunction)) {
+ foreach(var itemRecurse in Traverse(enumerable, recurseFunction)) {
yield return itemRecurse;
}
}
View
2 Trace/File.cs
@@ -20,7 +20,7 @@ public partial class File {
[XmlIgnore]
public string FullPath {
- get { return fullPath; }
+ get { return fullPath ?? (fullPath = Path.Combine(folder, name)); }
set {
fullPath = value.ToLower().NormalizePath();
if (Directory.Exists(fullPath)) {

0 comments on commit c3dd8e5

Please sign in to comment.