Skip to content

Commit b7dc4d3

Browse files
committed
Make SinceList and UntilList internal
1 parent 83f710c commit b7dc4d3

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

LibGit2Sharp/Filter.cs

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,12 @@ public Filter()
4040
/// </summary>
4141
public object Since { get; set; }
4242

43-
44-
/// <summary>
43+
/// <summary>
4544
/// Return a parsed list of Since objects.
4645
/// </summary>
47-
public IList<object> SinceList
46+
internal IList<object> SinceList
4847
{
49-
get
50-
{
51-
return sinceList ?? (sinceList = ToList(Since));
52-
}
48+
get { return sinceList ?? (sinceList = ToList(Since)); }
5349
}
5450

5551
/// <summary>
@@ -70,12 +66,9 @@ public IList<object> SinceList
7066
/// <summary>
7167
/// Return a parsed list of Until objects.
7268
/// </summary>
73-
public IList<object> UntilList
69+
internal IList<object> UntilList
7470
{
75-
get
76-
{
77-
return untilList ?? (untilList = ToList(Until));
78-
}
71+
get { return untilList ?? (untilList = ToList(Until)); }
7972
}
8073

8174
/// <summary>
@@ -93,12 +86,12 @@ static IList<object> ToList(object obj)
9386
}
9487

9588
var types = new[]
96-
{
97-
typeof(string), typeof(ObjectId),
98-
typeof(Commit), typeof(TagAnnotation),
99-
typeof(Tag), typeof(Branch), typeof(DetachedHead),
100-
typeof(Reference), typeof(DirectReference), typeof(SymbolicReference)
101-
};
89+
{
90+
typeof(string), typeof(ObjectId),
91+
typeof(Commit), typeof(TagAnnotation),
92+
typeof(Tag), typeof(Branch), typeof(DetachedHead),
93+
typeof(Reference), typeof(DirectReference), typeof(SymbolicReference)
94+
};
10295

10396
if (types.Contains(obj.GetType()))
10497
{

0 commit comments

Comments
 (0)