System.Xml.XmlBinaryReader.IsStartArray C# (CSharp) Méthode

IsStartArray() public méthode

public IsStartArray ( Type &type ) : bool
type Type
Résultat bool
        public override bool IsStartArray(out Type type)
        {
            type = null;
            if (_arrayState != ArrayState.Element)
                return false;
            switch (_arrayNodeType)
            {
                case XmlBinaryNodeType.BoolTextWithEndElement:
                    type = typeof(bool);
                    break;
                case XmlBinaryNodeType.Int16TextWithEndElement:
                    type = typeof(Int16);
                    break;
                case XmlBinaryNodeType.Int32TextWithEndElement:
                    type = typeof(Int32);
                    break;
                case XmlBinaryNodeType.Int64TextWithEndElement:
                    type = typeof(Int64);
                    break;
                case XmlBinaryNodeType.FloatTextWithEndElement:
                    type = typeof(float);
                    break;
                case XmlBinaryNodeType.DoubleTextWithEndElement:
                    type = typeof(double);
                    break;
                case XmlBinaryNodeType.DecimalTextWithEndElement:
                    type = typeof(decimal);
                    break;
                case XmlBinaryNodeType.DateTimeTextWithEndElement:
                    type = typeof(DateTime);
                    break;
                case XmlBinaryNodeType.GuidTextWithEndElement:
                    type = typeof(Guid);
                    break;
                case XmlBinaryNodeType.TimeSpanTextWithEndElement:
                    type = typeof(TimeSpan);
                    break;
                case XmlBinaryNodeType.UniqueIdTextWithEndElement:
                    type = typeof(UniqueId);
                    break;
                default:
                    return false;
            }
            return true;
        }

Same methods

XmlBinaryReader::IsStartArray ( XmlDictionaryString localName, XmlDictionaryString namespaceUri, XmlBinaryNodeType nodeType ) : bool
XmlBinaryReader::IsStartArray ( string localName, string namespaceUri, XmlBinaryNodeType nodeType ) : bool