Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Contains<T, T2>(ref T, in T2)

Returns true if a given substring occurs within this string.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

Contains<T, U>(T, T)

public static bool Contains<T, T2>(this ref T fs, in T2 other) where T : unmanaged, INativeList<byte>, IUTF8Bytes where T2 : unmanaged, INativeList<byte>, IUTF8Bytes

Parameters

fs

T
A string to search.

other

T
A substring to search for within this string.

Returns

Type

Description

boolTrue if the substring occurs within this string.