using System.Linq; namespace Nethereum.ABI.Decoders { public class StringBytes32Decoder : ICustomRawDecoder { public string Decode(byte[] output) { if (output.Length > 32) //assuming that first 32 is the data index as this is the raw data return new StringTypeDecoder().Decode(output.Skip(32).ToArray()); return new Bytes32TypeDecoder().Decode(output); } } }