A2BHelperWithoutContextNamespace.HelperExtensionMethods.TestNameOfAElement C# (CSharp) Method

TestNameOfAElement() private method

private TestNameOfAElement ( string name, TypeA element ) : bool
name string
element TypeA
return bool
        public static bool TestNameOfAElement(string name, TypeA.IA element)
        {
            //functional (operational) helper
            return (element.NameA == name) ?
                (true) : (false);
        }

Usage Example

            public override void DeclareSynchronization()
            {
                SynchronizeLeftToRightOnly(
                    s => s.NameA + HelperExtensionMethods.NameExtension(),
                    t => t.Name);

                SynchronizeManyLeftToRightOnly(SyncRule <RuleB>(),
                                               s => s.Elms,
                                               t => t.Elms);

                SynchronizeLeftToRightOnly(
                    s => HelperExtensionMethods.TestNameOfAElement("ABC", s),
                    t => t.IsNameABC);
            }