PureCat.Message.Internals.DefaultTaggedTransaction.HasChildren C# (CSharp) Method

HasChildren() public method

public HasChildren ( ) : bool
return bool
        public bool HasChildren()
        {
            return _mChildren != null && _mChildren.Count > 0;
        }

Usage Example

            private void MarkAsRunAway(ITransaction parent, DefaultTaggedTransaction transaction)
            {
                if (!transaction.HasChildren())
                {
                    transaction.AddData("RunAway");
                }

                transaction.Status = PureCatConstants.SUCCESS;
                transaction.Standalone = true;
                transaction.Complete();
            }