Enum ManifestResourceMatch
- Namespace
- Cuemon.Reflection
- Assembly
- Cuemon.Core.dll
Specifies the way of finding and returning an embedded resource.
public enum ManifestResourceMatch
Fields
ContainsExtension = 3Specifies a partial match on the file extension contained within the file name of the embedded resource.
ContainsName = 1Specifies a partial match on the file name of the embedded resource.
Extension = 2Specifies an exact match on the file extension contained within the file name of the embedded resource.
Name = 0Specifies an exact match on the file name of the embedded resource.
Examples
The following example demonstrates how to use
using System;
using Cuemon.Reflection;
namespace MyApp.Examples;
public class ManifestResourceMatchExample
{
public void Demonstrate()
{
var match = ManifestResourceMatch.Extension;
switch (match)
{
case ManifestResourceMatch.Name:
Console.WriteLine("Match by exact resource name.");
break;
case ManifestResourceMatch.ContainsName:
Console.WriteLine("Match by partial name match.");
break;
case ManifestResourceMatch.Extension:
Console.WriteLine("Match by file extension (e.g., .json).");
break;
case ManifestResourceMatch.ContainsExtension:
Console.WriteLine("Match by partial extension match.");
break;
}}
}