1. DirtyValueCalculator

Class DirtyValueCalculator

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

This class will check if values are dirty or not. Note however that this tracker only supports types that are supported in M:

  • Primitives
  • JTokens
  • Collections of primitives

The goals is to have intelligent dirty tracking.

  • If the value was set to A, then set to B and finally A again, then it should be marked not dirty.
  • If the value was set to A, and B is a copy of A (reference is not the same), then it should be marked not dirty.

For optimal performance, try to prevent unnecessary IsDirty checks.

Inheritance
System.Object
DirtyValueCalculator
Namespace: Stylelabs.M.Sdk.Models.Tracking
Assembly: Stylelabs.M.Sdk.dll
Syntax
public class DirtyValueCalculator : object

Properties

CachedHashCode

Declaration
public int? CachedHashCode { get; }
Property Value
TypeDescription
System.Nullable<System.Int32>

Methods

IsDirty(Object)

Declaration
public bool IsDirty(object value)
Parameters
TypeNameDescription
System.Objectvalue
Returns
TypeDescription
System.Boolean

SetOriginalValue(Object)

Declaration
public void SetOriginalValue(object value)
Parameters
TypeNameDescription
System.Objectvalue
この記事を改善するための提案がある場合は、 お知らせください!