internal string ErrorDescription() { if (_value >= 0) { return(string.Empty); } else { lock (s_descriptions) { string description; if (s_descriptions.TryGetValue(_value, out description)) { return(description); } description = ErrorInterop.StrError(-_value); s_descriptions.Add(_value, description); return(description); } } }
internal string ErrorDescription() { if (_value >= 0) { return(string.Empty); } else { lock (s_errnoDescriptions) { int errno = (int)-_value; string description; if (s_errnoDescriptions.TryGetValue(errno, out description)) { return(description); } description = ErrorInterop.StrError(errno); s_errnoDescriptions.Add(errno, description); return(description); } } }