1.5, added stuff, fixed stuff
- mod icon - fixes for new vanilla clipping issues - GenClosest optimization improving repairing, wardening, tending jobs - caching for new ListerBuildings methods - DynamicDrawManager single threading - Type.GetFields caching - StatParts analyzer category - removed duplicate steam warning and optionally window - added exception handling for debug menu, incidentworker, Graphic_Multi, InitializeComps, making all those now log what mod broke and not cause black screens or whatever
This commit is contained in:
@@ -24,4 +24,12 @@ public static class StringExtensions
|
||||
|
||||
public static string AppendWhenNotNull(this string instance, object? value)
|
||||
=> value != null ? instance + value : instance;
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static bool Contains(this string self, string value, StringComparison comparison)
|
||||
{
|
||||
Guard.IsNotNull(self);
|
||||
Guard.IsNotNull(value);
|
||||
return self.IndexOf(value, comparison) >= 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user