System.Data.XmlSchemaWriter.CheckExtendedPropertyExists C# (CSharp) Method

CheckExtendedPropertyExists() private method

private CheckExtendedPropertyExists ( DataTable tables, DataRelation relations ) : bool
tables DataTable
relations DataRelation
return bool
		private bool CheckExtendedPropertyExists (
			DataTable[] tables,
			DataRelation[] relations)
		{
			if (dataSetProperties.Count > 0)
				return true;
			foreach (DataTable dt in tables) {
				if (dt.ExtendedProperties.Count > 0)
					return true;
				foreach (DataColumn col in dt.Columns)
					if (col.ExtendedProperties.Count > 0)
						return true;
				foreach (Constraint c in dt.Constraints)
					if (c.ExtendedProperties.Count > 0)
						return true;
			}
			if (relations == null)
				return false;
			foreach (DataRelation rel in relations)
				if (rel.ExtendedProperties.Count > 0)
					return true;
			return false;
		}