Skip to content
Jack Brookes edited this page Oct 31, 2020 ยท 10 revisions

UXF.Extensions

Useful methods


Fields

rng: Random number generator with seed based on current time.

Properties

None

Methods

UXF.Extensions.Clone``1(System.Collections.Generic.IList<``0>)

Clones a list and all items inside

Parameters

  • listToClone:

UXF.Extensions.GetSafeFilename(string)

Modify a string to remove any unsafe characters

Parameters

  • filename:

UXF.Extensions.Shuffle``1(System.Collections.Generic.IList<``0>, System.Random)

Shuffles a list in-place with a given random number generator.

Parameters

  • list: List to shuffle

  • rng: Random number generator via which the shuffling occurs

UXF.Extensions.Shuffle``1(System.Collections.Generic.IList<``0>)

Shuffles a list in-place with the current time based random number generator.

Parameters

  • list: List to shuffle

UXF.Extensions.Swap``1(System.Collections.Generic.IList<``0>, int, int)

Swaps the order of the elements at indeces indexA and indexB within list

Parameters

None

UXF.Extensions.CombinePaths(string, string[])

Combine many path parts into a single path.

Parameters

  • path1: Base path

  • paths: Array of subsequent paths


Note: This file was automatically generated

๐Ÿง  Core topics

โ“ More help


๐Ÿ‘ฉโ€๐Ÿ’ป Programming reference

Unit tests

Clone this wiki locally