(IL2CPP) Error: called non-existent method System.Int64 System.IO.Stream::get_Length()

Unity Version: 2019.4.8f1
Scripting Backend: IL2CPP
Platform: UWP

Issue is that any method/field from System.IO.Stream is not consumable getting non-existent method exception. I am using stream type inside my custom assembly which is already specified as ‘preserved’ in link.xml. Please help me to resolve this.

Can you provide the full stack trace for the error message?