Skip to content

Commit 6e8aaa1

Browse files
committed
2015-03-10
- Enhancing connection string handling with IDbConnectionStringBuilder - Enhancing PostgreSQL provider (object explorer, code completion) - AsyncDataAdapter field count - Selection -> TypeDictionary + switch - Cleaning code - Adjusting namespaces - C# 6.0: expression bodied properties
1 parent 07f17c8 commit 6e8aaa1

File tree

500 files changed

+4781
-10196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

500 files changed

+4781
-10196
lines changed

DataCommander.Foundation/Collections/BitVector64.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@ public BitVector64(UInt64 data)
2424
///
2525
/// </summary>
2626
[CLSCompliant(false)]
27-
public UInt64 Value
28-
{
29-
get
30-
{
31-
return this.data;
32-
}
33-
}
27+
public UInt64 Value => this.data;
3428

3529
/// <summary>
3630
///

DataCommander.Foundation/Collections/CircuralBuffer.cs

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ public CircularBuffer(int capacity)
3232
/// <summary>
3333
///
3434
/// </summary>
35-
public int Capacity
36-
{
37-
get
38-
{
39-
return this.array.Length;
40-
}
41-
}
35+
public int Capacity => this.array.Length;
4236

4337
/// <summary>
4438
///
@@ -250,21 +244,9 @@ void ICollection<T>.CopyTo(T[] array, int arrayIndex)
250244
/// <summary>
251245
///
252246
/// </summary>
253-
public int Count
254-
{
255-
get
256-
{
257-
return this.count;
258-
}
259-
}
247+
public int Count => this.count;
260248

261-
bool ICollection<T>.IsReadOnly
262-
{
263-
get
264-
{
265-
return false;
266-
}
267-
}
249+
bool ICollection<T>.IsReadOnly => false;
268250

269251
bool ICollection<T>.Remove(T item)
270252
{

DataCommander.Foundation/Collections/DynamicArray.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,24 +138,12 @@ void ICollection<T>.CopyTo(T[] array, int arrayIndex)
138138
/// <summary>
139139
///
140140
/// </summary>
141-
public int Count
142-
{
143-
get
144-
{
145-
return this.count;
146-
}
147-
}
141+
public int Count => this.count;
148142

149143
/// <summary>
150144
///
151145
/// </summary>
152-
public bool IsReadOnly
153-
{
154-
get
155-
{
156-
return this.array.IsReadOnly;
157-
}
158-
}
146+
public bool IsReadOnly => this.array.IsReadOnly;
159147

160148
bool ICollection<T>.Remove(T item)
161149
{

DataCommander.Foundation/Collections/EmptyReadOnlyList.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ private EmptyReadOnlyList()
1212
{
1313
}
1414

15-
public static IReadOnlyList<T> Instance
16-
{
17-
get
18-
{
19-
return instance;
20-
}
21-
}
15+
public static IReadOnlyList<T> Instance => instance;
2216

2317
T IReadOnlyList<T>.this[int index]
2418
{
@@ -28,13 +22,7 @@ T IReadOnlyList<T>.this[int index]
2822
}
2923
}
3024

31-
int IReadOnlyCollection<T>.Count
32-
{
33-
get
34-
{
35-
return 0;
36-
}
37-
}
25+
int IReadOnlyCollection<T>.Count => 0;
3826

3927
public IEnumerator<T> GetEnumerator()
4028
{

DataCommander.Foundation/Collections/IndexableCollection/GetKeyResponse.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,12 @@ public GetKeyResponse(bool hasKey, T key)
2323
/// <summary>
2424
///
2525
/// </summary>
26-
public bool HasKey
27-
{
28-
get
29-
{
30-
return this.hasKey;
31-
}
32-
}
26+
public bool HasKey => this.hasKey;
3327

3428
/// <summary>
3529
///
3630
/// </summary>
37-
public T Key
38-
{
39-
get
40-
{
41-
return this.key;
42-
}
43-
}
31+
public T Key => this.key;
4432
}
4533

4634
/// <summary>

DataCommander.Foundation/Collections/IndexableCollection/IndexCollection.cs

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ public void Add(ICollectionIndex<T> item)
2828
/// </summary>
2929
/// <param name="name"></param>
3030
/// <returns></returns>
31-
public ICollectionIndex<T> this[string name]
32-
{
33-
get
34-
{
35-
return this.dictionary[name];
36-
}
37-
}
31+
public ICollectionIndex<T> this[string name] => this.dictionary[name];
3832

3933
/// <summary>
4034
///
@@ -75,24 +69,12 @@ public void CopyTo(ICollectionIndex<T>[] array, int arrayIndex)
7569
/// <summary>
7670
///
7771
/// </summary>
78-
public int Count
79-
{
80-
get
81-
{
82-
return this.dictionary.Count;
83-
}
84-
}
72+
public int Count => this.dictionary.Count;
8573

8674
/// <summary>
8775
///
8876
/// </summary>
89-
public bool IsReadOnly
90-
{
91-
get
92-
{
93-
return false;
94-
}
95-
}
77+
public bool IsReadOnly => false;
9678

9779
/// <summary>
9880
///

DataCommander.Foundation/Collections/IndexableCollection/IndexableCollection-1.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,7 @@ public IndexableCollection(ICollectionIndex<T> defaultIndex)
6161
/// <summary>
6262
///
6363
/// </summary>
64-
public IndexCollection<T> Indexes
65-
{
66-
get
67-
{
68-
return this.indexes;
69-
}
70-
}
64+
public IndexCollection<T> Indexes => this.indexes;
7165

7266
[ContractInvariantMethod]
7367
private void ContractInvariant()

DataCommander.Foundation/Collections/IndexableCollection/IndexableCollection-2.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,12 @@ public partial class IndexableCollection<T> : ICollection<T>
1010
/// <summary>
1111
///
1212
/// </summary>
13-
public int Count
14-
{
15-
get
16-
{
17-
return this.defaultIndex.Count;
18-
}
19-
}
13+
public int Count => this.defaultIndex.Count;
2014

2115
/// <summary>
2216
///
2317
/// </summary>
24-
public bool IsReadOnly
25-
{
26-
get
27-
{
28-
return this.defaultIndex.IsReadOnly;
29-
}
30-
}
18+
public bool IsReadOnly => this.defaultIndex.IsReadOnly;
3119

3220
/// <summary>
3321
///

DataCommander.Foundation/Collections/IndexableCollection/LinkedListIndex.cs

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,17 @@ public LinkedListIndex(string name)
2424
/// <summary>
2525
///
2626
/// </summary>
27-
public string Name
28-
{
29-
get
30-
{
31-
return this.name;
32-
}
33-
}
27+
public string Name => this.name;
3428

3529
/// <summary>
3630
///
3731
/// </summary>
38-
public int Count
39-
{
40-
get
41-
{
42-
return this.linkedList.Count;
43-
}
44-
}
32+
public int Count => this.linkedList.Count;
4533

4634
/// <summary>
4735
///
4836
/// </summary>
49-
public bool IsReadOnly
50-
{
51-
get
52-
{
53-
return false;
54-
}
55-
}
37+
public bool IsReadOnly => false;
5638

5739
/// <summary>
5840
///

DataCommander.Foundation/Collections/IndexableCollection/ListIndex.cs

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,32 +44,14 @@ public ListIndex(string name, IList<T> list)
4444
/// <summary>
4545
///
4646
/// </summary>
47-
public string Name
48-
{
49-
get
50-
{
51-
return this.name;
52-
}
53-
}
47+
public string Name => this.name;
5448

5549
/// <summary>
5650
///
5751
/// </summary>
58-
public int Count
59-
{
60-
get
61-
{
62-
return this.list.Count;
63-
}
64-
}
52+
public int Count => this.list.Count;
6553

66-
bool ICollection<T>.IsReadOnly
67-
{
68-
get
69-
{
70-
return false;
71-
}
72-
}
54+
bool ICollection<T>.IsReadOnly => false;
7355

7456
/// <summary>
7557
///

0 commit comments

Comments
 (0)