Google.Protobuf.ByteStringAsync static class ByteStringAsync SecuritySafeCritical attribute can not be placed on types with async methods. This class has ByteString's async methods so it can be marked with SecuritySafeCritical. Documentation Code