コード例 #1
0
ファイル: LazyBehavior.cs プロジェクト: thalesians/sodium
        internal LazyBehavior(TransactionInternal trans, Stream <T> stream, Lazy <T> lazyInitialValue)
            : base(stream, default(T))
        {
            this.LazyInitialValue = new Lazy <T>(() => GuardAgainstSend(lazyInitialValue));

            trans.Sample(this.EnsureValueIsCreated);
        }