Struct MigrationStep<TVersion, TTarget>
Define a migration step.
구현
상속된 멤버
네임스페이스: UnityEngine.Rendering.HighDefinition
어셈블리: solution.dll
구문
public struct MigrationStep<TVersion, TTarget> : IEquatable<MigrationStep<TVersion, TTarget>> where TVersion : struct, IConvertible where TTarget : class, IVersionable<TVersion>
타입 파라미터
이름 | 설명 |
---|---|
TVersion | An enum identifying the version. |
TTarget | The type to migrate. |
생성자
이름 | 설명 |
---|---|
MigrationStep(TVersion, Action<TTarget>) | Create a new migration step. |
필드
이름 | 설명 |
---|---|
Version | The version of the step. |
메서드
이름 | 설명 |
---|---|
Equals(MigrationStep<TVersion, TTarget>) | Evaluate equality between migration steps. |
Migrate(TTarget) | Migrate the instance for this step and set the version of the instance to this version. If the instance has a version greater or equal to the step one, nothing will be applied. |