Removed exception on index == 0 from IndirectResource ctor

pull/187/head
dahall 2020-12-03 22:23:12 -07:00
parent 81ff24990c
commit b0bd100bf2
1 changed files with 0 additions and 1 deletions

View File

@ -21,7 +21,6 @@ namespace Vanara.Windows.Shell
public IndirectResource(string module, int resourceIdOrIndex, string versionModifier = null)
{
if (module is null) throw new ArgumentNullException(nameof(module));
if (resourceIdOrIndex == 0) throw new ArgumentOutOfRangeException(nameof(resourceIdOrIndex), "Value cannot be 0.");
RawValue = $"@{module},{resourceIdOrIndex}" + (versionModifier is null ? "" : ';' + versionModifier);
}