File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
NHibernate.Test/UtilityTest Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ using System ;
1
2
using System . Collections ;
2
3
using NHibernate . Util ;
3
4
using NUnit . Framework ;
4
5
5
6
namespace NHibernate . Test . UtilityTest
6
7
{
8
+ [ Obsolete ]
7
9
[ TestFixture ]
8
10
public class SingletonEnumerableFixture
9
11
{
@@ -46,4 +48,4 @@ public void ShouldWorkAsEnumerator()
46
48
Assert . That ( i , Is . EqualTo ( 1 ) ) ;
47
49
}
48
50
}
49
- }
51
+ }
Original file line number Diff line number Diff line change @@ -89,12 +89,12 @@ public override IEnumerable<Property> PropertyClosureIterator
89
89
/// </remarks>
90
90
public override IEnumerable < Table > TableClosureIterator
91
91
{
92
- get { return new SingletonEnumerable < Table > ( Table ) ; }
92
+ get { return new [ ] { Table } ; }
93
93
}
94
94
95
95
public override IEnumerable < IKeyValue > KeyClosureIterator
96
96
{
97
- get { return new SingletonEnumerable < IKeyValue > ( Key ) ; }
97
+ get { return new [ ] { Key } ; }
98
98
}
99
99
100
100
/// <summary>
Original file line number Diff line number Diff line change
1
+ using System ;
1
2
using System . Collections ;
2
3
using System . Collections . Generic ;
3
4
4
5
namespace NHibernate . Util
5
6
{
7
+ //Since 5.2
8
+ [ Obsolete ( "This class has no more usages and will be removed in a future version" ) ]
6
9
public sealed class SingletonEnumerable < T > : IEnumerable < T >
7
10
{
8
11
private readonly T value ;
@@ -78,4 +81,4 @@ object IEnumerator.Current
78
81
#endregion
79
82
}
80
83
}
81
- }
84
+ }
You can’t perform that action at this time.
0 commit comments