Table of Contents

Class GeneralExtensions

Namespace
Nautilus.Extensions
Assembly
Nautilus.dll
Contains extensions that are not exclusively specific to one type.
public static class GeneralExtensions
Inheritance
GeneralExtensions
Inherited Members

Methods

AddHint(ErrorMessage, string)

Adds a message and increases the life of it, instead of spamming it.
public static void AddHint(this ErrorMessage @this, string message)

Parameters

this ErrorMessage
message string
the message text

Add<T>(T[], T)

Adds an object to the end of the Array.
public static void Add<T>(this T[] array, T item)

Parameters

array T[]
The array to perform this action on.
item T
The object to be added to the end of the Array. The value can be null for reference types.

Type Parameters

T

AppendJoin<T>(StringBuilder, string, IEnumerable<T>)

Concatenates string representations of the provided values, using the specified separator between them.
public static StringBuilder AppendJoin<T>(this StringBuilder builder, string separator, IEnumerable<T> values)

Parameters

builder StringBuilder
The StringBuilder.
separator string
The string to insert between each pair of values.
values IEnumerable<T>
Values to concatenate into the builder.

Returns

StringBuilder
The provided StringBuilder.

Type Parameters

T
Type of value that will be converted to string.

TrimClone(string)

Removes the "(Clone)" part from names.
public static string TrimClone(this string @this)

Parameters

this string
The string to perform this action on.

Returns

string
The new string without "(Clone)". If the specified string does not contain "(Clone)", it simply returns the string as-is.