Skip to content
Yami An edited this page Jan 15, 2023 · 19 revisions

YAMI AN NEPHILIM LIBRARY

EXTENSION

NUMERIC

  • Min: returns the smallest item in params
  • Max: Returns the largest item in params
  • Byte:
    • ParseByte: try parse string to byte, if failed return 0 / try parse string to byte, if failed return default value
    • ParseByteMin: try parse string to byte, if failed return min value
    • ParseByteMax: try parse string to byte, if failed return max value
    • RandomNumberByte: generate random byte number / generate random byte number with max value / generate random byte number with min and max value
  • SByte:
    • ParseSbyte: try parse string to sbyte, if failed return 0 / try parse string to sbyte, if failed return default value
    • ParseSbyteMin: try parse string to sbyte, if failed return min value
    • ParseSbyteMax: try parse string to sbyte, if failed return max value
    • RandomNumberSbyte: generate random sbyte number / generate random sbyte number with max value / generate random sbyte number with min and max value
  • Short:
    • ParseShort: try parse string to short, if failed return 0 / try parse string to short, if failed return default value
    • ParseShortMin: try parse string to short, if failed return min value
    • ParseShortMax: try parse string to short, if failed return max value
    • RandomNumberShort: generate random short number / generate random short number with max value / generate random short number with min and max value
  • Ushort:
    • ParseUshort: try parse string to ushort, if failed return 0 / try parse string to ushort, if failed return default value
    • ParseUshortMin: try parse string to ushort, if failed return min value
    • ParseUshortMax: try parse string to ushort, if failed return max value
    • RandomNumberUshort: generate random ushort number / generate random ushort number with max value / generate random ushort number with min and max value
  • Int:
    • ParseInt: try parse string to int, if failed return 0 / try parse string to int, if failed return default value
    • ParseIntMin: try parse string to int, if failed return min value
    • ParseIntMax: try parse string to int, if failed return max value
    • RandomNumberInt: generate random int number / generate random int number with max value / generate random int number with min and max value
  • Uint:
    • ParseUint: try parse string to uint, if failed return 0 / try parse string to uint, if failed return default value
    • ParseUintMin: try parse string to uint, if failed return min value
    • ParseUintMax: try parse string to uint, if failed return max value
    • RandomNumberUint: generate random uint number / generate random uint number with max value / generate random uint number with min and max value
  • Nint:
    • ParseNint: try parse string to nint, if failed return 0 / try parse string to nint, if failed return default value
    • ParseNintMin: try parse string to nint, if failed return min value
    • ParseNintMax: try parse string to nint, if failed return max value
    • RandomNumberNint: generate random nint number / generate random nint number with max value / generate random nint number with min and max value
  • Nuint:
    • ParseNuint: try parse string to nuint, if failed return 0 / try parse string to nuint, if failed return default value
    • ParseNuintMin: try parse string to nuint, if failed return min value
    • ParseNuintMax: try parse string to nuint, if failed return max value
    • RandomNumberNuint: generate random nuint number / generate random nuint number with max value / generate random nuint number with min and max value
  • Long:
    • ParseLong: try parse string to long, if failed return 0 / try parse string to long, if failed return default value
    • ParseLongMin: try parse string to long, if failed return min value
    • ParseLongMax: try parse string to long, if failed return max value
    • RandomNumberLong: generate random long number / generate random long number with max value / generate random long number with min and max value
  • Ulong:
    • ParseUlong: try parse string to ulong, if failed return 0 / try parse string to ulong, if failed return default value
    • ParseUlongMin: try parse string to ulong, if failed return min value
    • ParseUlongMax: try parse string to ulong, if failed return max value
    • RandomNumberUlong: generate random ulong number / generate random ulong number with max value / generate random ulong number with min and max value
  • Float:
    • ParseFloat: try parse string to float, if failed return 0 / try parse string to float, if failed return default value
    • ParseFloatMin: try parse string to float, if failed return min value
    • ParseFloatMax: try parse string to float, if failed return max value
    • RandomNumberFloat: generate random float number / generate random float number with max value / generate random float number with min and max value
  • Double:
    • ParseDouble: try parse string to double, if failed return 0 / try parse string to double, if failed return default value
    • ParseDoubleMin: try parse string to double, if failed return min value
    • ParseDoubleMax: try parse string to double, if failed return max value
    • RandomNumberDouble: generate random double number / generate random double number with max value / generate random double number with min and max value
  • Decimal:
    • ParseDecimal: try parse string to decimal, if failed return 0 / try parse string to decimal, if failed return default value
    • ParseDecimalMin: try parse string to decimal, if failed return min value
    • ParseDecimalMax: try parse string to decimal, if failed return max value
    • RandomNumberDecimal: generate random decimal number / generate random decimal number with max value / generate random decimal number with min and max value

TEXT

  • String
    • HasValue: check if string has value
    • HasCharater: check if string has character
    • GetValue: get value of string, if string null return empty / get value of string, if string null return string default

LIST

  • HasItem: check if list has item
  • SplitListBySize: split list by size

RANDOM

  • NextInt32: returns a non-negative random integer
  • NextSingle: returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0
  • NextDouble: returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0
  • NextDecimal: returns a random floating-point number that is greater than or equal to 0.0, and less than 1.0

OTHER

PASSWORD

  • Properties
    • SaltSize: int
    • KeySize: int
    • Iterations: int
    • SegmentDelimiter: char
    • Algorithm: Algorithm
  • Methods
    • Hash: hash password
    • Verify: verify password
Clone this wiki locally