TUP.AsmResolver.NET.BlobSignatureReader.ReadCustomAttributeArgumentValue C# (CSharp) Méthode

ReadCustomAttributeArgumentValue() public méthode

public ReadCustomAttributeArgumentValue ( TypeReference paramType ) : object
paramType TUP.AsmResolver.NET.Specialized.TypeReference
Résultat object
        public object ReadCustomAttributeArgumentValue(TypeReference paramType)
        {
            if (!paramType.IsArray || !(paramType as ArrayType).IsVector)
                return ReadCustomAttributeArgumentElement(paramType);

            // throw new NotImplementedException("Array constructor values are not supported yet.");

            ushort elementcount = this.ReadUInt16();
            object[] elements = new object[elementcount];
            for (int i = 0; i < elementcount; i++)
                elements[i] = ReadCustomAttributeArgumentElement((paramType as ArrayType).OriginalType);

            return elements;
        }