Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (19 sloc) 623 Bytes
using FluentTypes.Exceptions;
namespace FluentTypes.Texts
internal sealed class NullText : Text
private static bool _onlyOnce;
internal NullText()
if (_onlyOnce) throw new NullObjectInstantiationException();
_onlyOnce = true;
* The value returned for `NullText` should be updated to whatever
* is appropriate for the including system. An EmptyString has always
* been successful so far for me. Feel free to leave it if it works.
protected override string Value() => string.Empty;
You can’t perform that action at this time.