C# 클래스 Unity.Serialization.PropertyChecks

Helper class to validate properties during serialization and deserialization.
파일 보기 프로젝트 열기: Unity-Technologies/com.unity.reflect.viewer

공개 메소드들

메소드 설명
CheckReadOnlyPropertyForDeserialization ( Property property, &container, &value, string &error ) : bool

Validates a readonly property was correctly deserialized. This can be used this to catch any errors which could fail silently.

비공개 메소드들

메소드 설명
GetReadOnlyReferenceTypeErrorMessage ( Type type, string propertyName ) : string
GetReadOnlyReferenceTypeWithInvalidTypeErrorMessage ( Type type, string propertyName ) : string
GetReadOnlyValueTypeErrorMessage ( Type type, string propertyName ) : string
IsPropertyExcludedFromSerialization ( IProperty property ) : bool

Returns if the property should be skipped during serialization and deserialization.

메소드 상세

CheckReadOnlyPropertyForDeserialization() 공개 정적인 메소드

Validates a readonly property was correctly deserialized. This can be used this to catch any errors which could fail silently.
public static CheckReadOnlyPropertyForDeserialization ( Property property, &container, &value, string &error ) : bool
property Property The property being deserialized.
container The container being deserialized.
value The deserialized value from the stream.
error string When this method returns, contains the error message. If any.
리턴 bool