Add object null checks in Memory<T> APIs to support default (#14816)
authorAhson Khan <ahkha@microsoft.com>
Tue, 14 Nov 2017 15:31:48 +0000 (07:31 -0800)
committerStephen Toub <stoub@microsoft.com>
Tue, 14 Nov 2017 15:31:48 +0000 (10:31 -0500)
commitfffa91039bcf96c774d7244e68387740225ee8eb
treec34f748acad63bf3ce6ada86319db77e31335bb1
parent6ce3a81700470078e73e4dc9d3a33747d22ef883
Add object null checks in Memory<T> APIs to support default (#14816)

* Add object null checks in Memory<T> APIs to support default

* Changing Empty property to return default value.

* Update use of object null checks

* Addressing PR feedback.

* Removing typeof char check.

* Fix typo
src/mscorlib/shared/System/Memory.cs
src/mscorlib/shared/System/ReadOnlyMemory.cs