System.Data.XSDSchema.HandleColumnExpression C# (CSharp) Method

HandleColumnExpression() private method

private HandleColumnExpression ( object instance, XmlAttribute attrs ) : void
instance object
attrs System.Xml.XmlAttribute
return void
        private void HandleColumnExpression(object instance, XmlAttribute[] attrs)
        {
            if (attrs == null)
                return;
            DataColumn dc = instance as DataColumn;
            Debug.Assert(dc != null, "HandleColumnExpression is supposed to be called for DataColumn");
            if (dc != null)
            {
                for (int i = 0; i < attrs.Length; i++)
                {
                    if (attrs[i].NamespaceURI == Keywords.MSDNS)
                    {
                        if (attrs[i].LocalName == "Expression")
                        {
                            if (_expressions == null)
                                _expressions = new Hashtable();
                            _expressions[dc] = attrs[i].Value;
                            _columnExpressions.Add(dc);
                            break;
                        }
                    }
                }
            }
        }