ドキュメント

Unity Engine

Unity Engine

TryConvert<TSource, TDestination>(ref TSource, out TDestination)

Converts the specified value from TSource to TDestination.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule

TryConvert<T, U>(T, T)

public static bool TryConvert<TSource, TDestination>(ref TSource source, out TDestination destination)

Parameters

source

T
The source value to convert.

destination

T
When this method returns, contains the converted destination value if the conversion succeeded; otherwise, default.

Returns

Type

Description

bool
true
if the conversion succeeded; otherwise,
false
.