Exemplo n.º 1
0
        internal byte[] GetVirtualBlobBytes(BlobHandle handle, bool unique)
        {
            BlobHandle.VirtualIndex index = handle.GetVirtualIndex();
            byte[] result = s_virtualValues[(int)index];

            switch (index)
            {
            case BlobHandle.VirtualIndex.AttributeUsage_AllowMultiple:
            case BlobHandle.VirtualIndex.AttributeUsage_AllowSingle:
                result = (byte[])result.Clone();
                handle.SubstituteTemplateParameters(result);
                break;

            default:
                if (unique)
                {
                    result = (byte[])result.Clone();
                }
                break;
            }

            return(result);
        }
 internal byte[] GetVirtualBlobBytes(BlobHandle handle, bool unique)
 {
     BlobHandle.VirtualIndex index = handle.GetVirtualIndex();
     byte[] result = s_virtualValues ![(int)index];