public override byte[] GetILAsByteArray() { MetadataOnlyModule resolver = base.Method.Resolver; uint methodRva = resolver.GetMethodRva(base.Method.MetadataToken); byte[] numArray = resolver.RawMetadata.ReadRva((long)((ulong)methodRva + (long)this.m_header.HeaderSizeBytes), this.m_header.CodeSize); return(numArray); }
internal static MethodBody Create(MetadataOnlyMethodInfo method) { MetadataOnlyModule resolver = method.Resolver; uint methodRva = resolver.GetMethodRva(method.MetadataToken); if (methodRva == 0) { return(null); } return(new MetadataOnlyMethodBodyWorker(method, MetadataOnlyMethodBodyWorker.GetMethodHeader(methodRva, resolver))); }