Skip to content

Commit fac26c9

Browse files
committed
Documentation: Updated from previous commits
1 parent 8d1763f commit fac26c9

13 files changed

+67
-144
lines changed

Documentation/Helper.GetModules.iexB5RflxaZB6izRcfY9VQ.md renamed to Documentation/Helper.GetModules.g6hZ8dWZ6pdk.fUPVLT1Sw.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
## Helper.GetModules(KMBomb) Method
44
Allows you to get the collection of [ModuleContainer](ModuleContainer.md 'KeepCoding.ModuleContainer') from a [KMBomb](https://docs.microsoft.com/en-us/dotnet/api/KMBomb 'KMBomb').
55
```csharp
6-
public static System.Collections.ObjectModel.ReadOnlyCollection<KeepCoding.ModuleContainer> GetModules(global::KMBomb bomb);
6+
public static System.Collections.ObjectModel.ReadOnlyCollection<KeepCoding.ModuleContainer> GetModules(this KMBomb bomb);
77
```
88
#### Parameters
9-
<a name='KeepCoding.Helper.GetModules(global..KMBomb).bomb'></a>
9+
<a name='KeepCoding.Helper.GetModules(KMBomb).bomb'></a>
1010
`bomb` [KMBomb](https://docs.microsoft.com/en-us/dotnet/api/KMBomb 'KMBomb')
1111
The instance of [KMBomb](https://docs.microsoft.com/en-us/dotnet/api/KMBomb 'KMBomb') that has modules.
1212

1313
#### Returns
1414
[System.Collections.ObjectModel.ReadOnlyCollection&lt;](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.ObjectModel.ReadOnlyCollection-1 'System.Collections.ObjectModel.ReadOnlyCollection`1')[ModuleContainer](ModuleContainer.md 'KeepCoding.ModuleContainer')[&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.ObjectModel.ReadOnlyCollection-1 'System.Collections.ObjectModel.ReadOnlyCollection`1')
15-
All modules within [bomb](Helper.GetModules.iexB5RflxaZB6izRcfY9VQ.md#KeepCoding.Helper.GetModules(global..KMBomb).bomb 'KeepCoding.Helper.GetModules(global::KMBomb).bomb').
15+
All modules within [bomb](Helper.GetModules.g6hZ8dWZ6pdk.fUPVLT1Sw.md#KeepCoding.Helper.GetModules(KMBomb).bomb 'KeepCoding.Helper.GetModules(KMBomb).bomb').
1616
### Remarks
1717
This collection also includes vanilla modules, including [Empty](ComponentPool.ComponentTypeEnum.md#KeepCoding.ComponentPool.ComponentTypeEnum.Empty 'KeepCoding.ComponentPool.ComponentTypeEnum.Empty') components and [Timer](ComponentPool.ComponentTypeEnum.md#KeepCoding.ComponentPool.ComponentTypeEnum.Timer 'KeepCoding.ComponentPool.ComponentTypeEnum.Timer'). You can filter the collection with [IsVanilla](ModuleContainer.IsVanilla.md 'KeepCoding.ModuleContainer.IsVanilla'), [IsModded](ModuleContainer.IsModded.md 'KeepCoding.ModuleContainer.IsModded'), [IsSolvable](ModuleContainer.IsSolvable.md 'KeepCoding.ModuleContainer.IsSolvable'), or [IsNeedy](ModuleContainer.IsNeedy.md 'KeepCoding.ModuleContainer.IsNeedy'), [IsEmptyOrTimer](ModuleContainer.IsEmptyOrTimer.md 'KeepCoding.ModuleContainer.IsEmptyOrTimer'), or [IsModule](ModuleContainer.IsModule.md 'KeepCoding.ModuleContainer.IsModule').
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#### [KeepCoding](index.md 'index')
2+
### [KeepCoding](KeepCoding.md 'KeepCoding').[Helper](Helper.md 'KeepCoding.Helper')
3+
## Helper.IsNullOrEmpty&lt;T&gt;(T) Method
4+
Determines if the [System.Collections.Generic.IEnumerable&lt;&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') is null or empty.
5+
```csharp
6+
public static bool IsNullOrEmpty<T>(this T source)
7+
where T : System.Collections.IEnumerable;
8+
```
9+
#### Type parameters
10+
<a name='KeepCoding.Helper.IsNullOrEmpty.T.(T).T'></a>
11+
`T`
12+
13+
#### Parameters
14+
<a name='KeepCoding.Helper.IsNullOrEmpty.T.(T).source'></a>
15+
`source` [T](Helper.IsNullOrEmpty.jdz+JeyhBOJUkKF07lkk6Q.md#KeepCoding.Helper.IsNullOrEmpty.T.(T).T 'KeepCoding.Helper.IsNullOrEmpty&lt;T&gt;(T).T')
16+
The [System.Collections.Generic.IEnumerable&lt;&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IEnumerable-1 'System.Collections.Generic.IEnumerable`1') to check for.
17+
18+
#### Returns
19+
[System.Boolean](https://docs.microsoft.com/en-us/dotnet/api/System.Boolean 'System.Boolean')
20+
True if [source](Helper.IsNullOrEmpty.jdz+JeyhBOJUkKF07lkk6Q.md#KeepCoding.Helper.IsNullOrEmpty.T.(T).source 'KeepCoding.Helper.IsNullOrEmpty&lt;T&gt;(T).source') is equal to null, or empty.

Documentation/Helper.IsNullOrEmpty.meNyw20HH..IuX5GCmXbig.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

Documentation/Helper.IsNullOrEmpty.oMMTpQBRqDikUWQwCX1l9A.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

Documentation/Helper.NullOrEmptyCheck.zHO1WbUJdCwTLje3xx8xxg.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

Documentation/Helper.ToModules.TgjMd83azTL3GyrPELHvwg.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

Documentation/Helper.ToNumbers.Zz.P1BqTJzR21j1qXeiyZQ.md

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#### [KeepCoding](index.md 'index')
2+
### [KeepCoding](KeepCoding.md 'KeepCoding').[Helper](Helper.md 'KeepCoding.Helper')
3+
## Helper.ToNumbers&lt;T&gt;(IList&lt;T&gt;, Nullable&lt;int&gt;, Nullable&lt;int&gt;, Nullable&lt;int&gt;, Nullable&lt;int&gt;) Method
4+
Parses each element of an array into a number. If it succeeds it returns the integer array, if it fails then it returns null.
5+
```csharp
6+
public static int[] ToNumbers<T>(this System.Collections.Generic.IList<T> ts, System.Nullable<int> min=null, System.Nullable<int> max=null, System.Nullable<int> minLength=null, System.Nullable<int> maxLength=null)
7+
where T : notnull;
8+
```
9+
#### Type parameters
10+
<a name='KeepCoding.Helper.ToNumbers.T.(System.Collections.Generic.IList.T..System.Nullable.int..System.Nullable.int..System.Nullable.int..System.Nullable.int.).T'></a>
11+
`T`
12+
13+
#### Parameters
14+
<a name='KeepCoding.Helper.ToNumbers.T.(System.Collections.Generic.IList.T..System.Nullable.int..System.Nullable.int..System.Nullable.int..System.Nullable.int.).ts'></a>
15+
`ts` [System.Collections.Generic.IList&lt;](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')[T](Helper.ToNumbers.jKlH6SB0aEghU6jHZQyJ6g.md#KeepCoding.Helper.ToNumbers.T.(System.Collections.Generic.IList.T..System.Nullable.int..System.Nullable.int..System.Nullable.int..System.Nullable.int.).T 'KeepCoding.Helper.ToNumbers&lt;T&gt;(System.Collections.Generic.IList&lt;T&gt;, System.Nullable&lt;int&gt;, System.Nullable&lt;int&gt;, System.Nullable&lt;int&gt;, System.Nullable&lt;int&gt;).T')[&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Collections.Generic.IList-1 'System.Collections.Generic.IList`1')
16+
The array to convert to an integer.
17+
18+
<a name='KeepCoding.Helper.ToNumbers.T.(System.Collections.Generic.IList.T..System.Nullable.int..System.Nullable.int..System.Nullable.int..System.Nullable.int.).min'></a>
19+
`min` [System.Nullable&lt;](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1')
20+
The minimum acceptable value of any given index. (inclusive)
21+
22+
<a name='KeepCoding.Helper.ToNumbers.T.(System.Collections.Generic.IList.T..System.Nullable.int..System.Nullable.int..System.Nullable.int..System.Nullable.int.).max'></a>
23+
`max` [System.Nullable&lt;](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1')
24+
The maximum acceptable value of any given index. (inclusive)
25+
26+
<a name='KeepCoding.Helper.ToNumbers.T.(System.Collections.Generic.IList.T..System.Nullable.int..System.Nullable.int..System.Nullable.int..System.Nullable.int.).minLength'></a>
27+
`minLength` [System.Nullable&lt;](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1')
28+
The minimum acceptable length of the array. (inclusive)
29+
30+
<a name='KeepCoding.Helper.ToNumbers.T.(System.Collections.Generic.IList.T..System.Nullable.int..System.Nullable.int..System.Nullable.int..System.Nullable.int.).maxLength'></a>
31+
`maxLength` [System.Nullable&lt;](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1')[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Nullable-1 'System.Nullable`1')
32+
The maximum acceptable length of the array. (inclusive)
33+
34+
#### Returns
35+
[System.Int32](https://docs.microsoft.com/en-us/dotnet/api/System.Int32 'System.Int32')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array')
36+
The array as integers, or null if it fails.

0 commit comments

Comments
 (0)