System.Data.XmlSchemaDataImporter.HandleDataSetContentTypeParticle C# (CSharp) Method

HandleDataSetContentTypeParticle() private method

private HandleDataSetContentTypeParticle ( XmlSchemaParticle p ) : void
p System.Xml.Schema.XmlSchemaParticle
return void
		private void HandleDataSetContentTypeParticle (XmlSchemaParticle p)
		{
			XmlSchemaElement el = p as XmlSchemaElement;
			if (el != null) {
#if NET_2_0
				if (el.ElementSchemaType is XmlSchemaComplexType && el.RefName != el.QualifiedName)
#else
				if (el.ElementType is XmlSchemaComplexType && el.RefName != el.QualifiedName)
#endif
					ProcessDataTableElement (el);
			}
			else if (p is XmlSchemaGroupBase) {
				foreach (XmlSchemaParticle pc in ((XmlSchemaGroupBase) p).Items)
					HandleDataSetContentTypeParticle (pc);
			}
		}