public bool Equals(ExtensionReference?other)
    {
        if (ReferenceEquals(this, other))
        {
            return(true);
        }

        return(other switch
        {
            null => false,
            ExtensionFileReference fileReference => Equals(fileReference),
            _ => FullPath == other.FullPath
        });
Example #2
0
 internal Extensions(ExtensionFileReference reference, ExtensionPredicate extensionPredicate)
 {
     _reference          = reference;
     _extensionPredicate = extensionPredicate;
     _lazyAllExtensions  = default;
 }