Exemple #1
0
        public static void MustShareLogicalParent(Schema2.ModelRoot a, Schema2.LogicalChildOfRoot b, string parameterName)
        {
            if (a is null)
            {
                throw new ArgumentNullException("this");
            }
            if (b is null)
            {
                throw new ArgumentNullException(parameterName);
            }

            if (a != b.LogicalParent)
            {
                throw new ArgumentException("LogicalParent mismatch", parameterName);
            }
        }
Exemple #2
0
 public static void MustShareLogicalParent(Schema2.LogicalChildOfRoot a, Schema2.LogicalChildOfRoot b, string parameterName)
 {
     MustShareLogicalParent(a?.LogicalParent, b, parameterName);
 }