예제 #1
0
        /// <summary>
        /// Creates and initializes TransactionPropertyNode instance from parameters</summary>
        /// <param name="instance">Object or collection of objects that share a property</param>
        /// <param name="descriptor">PropertyDescriptor of shared property</param>
        /// <param name="isEnumerable">Whether the object is enumerable</param>
        /// <param name="context">Transaction context</param>
        /// <returns>Initialized PropertyNode instance</returns>
        public static PropertyNode CreateTransactionProperty(object instance, PropertyDescriptor descriptor, bool isEnumerable, ITransactionContext context)
        {
            var result = new TransactionPropertyNode(context);

            result.Initialize(instance, descriptor, isEnumerable);
            return(result);
        }
예제 #2
0
 /// <summary>
 /// Creates and initializes TransactionPropertyNode instance from parameters</summary>
 /// <param name="instance">Object or collection of objects that share a property</param>
 /// <param name="descriptor">PropertyDescriptor of shared property</param>
 /// <param name="isEnumerable">Whether the object is enumerable</param>
 /// <param name="context">Transaction context</param>
 /// <returns>Initialized PropertyNode instance</returns>
 public static PropertyNode CreateTransactionProperty(object instance, PropertyDescriptor descriptor, bool isEnumerable, ITransactionContext context)
 {
     var result = new TransactionPropertyNode(context);
     result.Initialize(instance, descriptor, isEnumerable);
     return result;
 }