System.Xml.Serialization.XmlSerializationILGen.EnsureArrayIndex C# (CSharp) 메소드

EnsureArrayIndex() 개인적인 메소드

private EnsureArrayIndex ( TypeMapping a, int index ) : System.Xml.Serialization.TypeMapping[]
a TypeMapping
index int
리턴 System.Xml.Serialization.TypeMapping[]
        private TypeMapping[] EnsureArrayIndex(TypeMapping[] a, int index)
        {
            if (a == null) return new TypeMapping[32];
            if (index < a.Length) return a;
            TypeMapping[] b = new TypeMapping[a.Length + 32];
            Array.Copy(a, 0, b, 0, index);
            return b;
        }