using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Configuration;
using BepInEx.Logging;
using HarmonyLib;
using Microsoft.CodeAnalysis;
using TMPro;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.Events;
using UnityEngine.UI;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("com.atomic.fishydex")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("0.1.2.0")]
[assembly: AssemblyInformationalVersion("0.1.2")]
[assembly: AssemblyProduct("com.atomic.fishydex")]
[assembly: AssemblyTitle("Fishydex")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.1.2.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
internal sealed class NullableAttribute : Attribute
{
public readonly byte[] NullableFlags;
public NullableAttribute(byte P_0)
{
NullableFlags = new byte[1] { P_0 };
}
public NullableAttribute(byte[] P_0)
{
NullableFlags = P_0;
}
}
[CompilerGenerated]
[Embedded]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
internal sealed class NullableContextAttribute : Attribute
{
public readonly byte Flag;
public NullableContextAttribute(byte P_0)
{
Flag = P_0;
}
}
[CompilerGenerated]
[Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace BepInEx
{
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
[Conditional("CodeGeneration")]
[Embedded]
internal sealed class BepInAutoPluginAttribute : Attribute
{
public BepInAutoPluginAttribute(string? id = null, string? name = null, string? version = null)
{
}
}
}
namespace BepInEx.Preloader.Core.Patching
{
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
[Conditional("CodeGeneration")]
[Embedded]
internal sealed class PatcherAutoPluginAttribute : Attribute
{
public PatcherAutoPluginAttribute(string? id = null, string? name = null, string? version = null)
{
}
}
}
namespace Microsoft.CodeAnalysis
{
[Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace Fishydex
{
[BepInPlugin("com.atomic.fishydex", "Fishydex", "0.1.2")]
public class Plugin : BaseUnityPlugin
{
private Harmony harmony;
public static Sprite DripIcon;
public const string Id = "com.atomic.fishydex";
internal static ManualLogSource Log { get; private set; }
public static ConfigEntry<bool> EnableDebugLogging { get; private set; }
public static string Name => "Fishydex";
public static string Version => "0.1.2";
private void Awake()
{
//IL_004f: Unknown result type (might be due to invalid IL or missing references)
//IL_0059: Expected O, but got Unknown
Log = ((BaseUnityPlugin)this).Logger;
Log.LogInfo((object)("Plugin " + Name + " is loaded!"));
EnableDebugLogging = ((BaseUnityPlugin)this).Config.Bind<bool>("General", "Enable Debug Logging", false, "Enable extra debug logging meant to make it easy to get creature IDs");
harmony = new Harmony("com.atomic.fishydex");
harmony.PatchAll();
DripIcon = LoadSprite("Fishydex.Drip.png");
}
public static Sprite LoadSprite(string resource)
{
//IL_0031: Unknown result type (might be due to invalid IL or missing references)
//IL_0037: Expected O, but got Unknown
//IL_005d: Unknown result type (might be due to invalid IL or missing references)
//IL_006c: Unknown result type (might be due to invalid IL or missing references)
Assembly executingAssembly = Assembly.GetExecutingAssembly();
using Stream stream = executingAssembly.GetManifestResourceStream(resource);
if (stream == null)
{
Log.LogError((object)("Resource " + resource + " not found."));
return null;
}
Texture2D val = new Texture2D(2, 2);
ImageConversion.LoadImage(val, ReadFully(stream));
return Sprite.Create(val, new Rect(0f, 0f, (float)((Texture)val).width, (float)((Texture)val).height), new Vector2(0.5f, 0.5f));
}
private static byte[] ReadFully(Stream input)
{
using MemoryStream memoryStream = new MemoryStream();
input.CopyTo(memoryStream);
return memoryStream.ToArray();
}
}
public static class CreatureBaitHelper
{
private static Dictionary<byte, string> _creatureToBaitMap;
private static bool _isInitialized = false;
private static Dictionary<byte, string> _baitOverrides = new Dictionary<byte, string>
{
{ 11, "Bowhead Whale + Volcano" },
{ 5, "Tuna" }
};
public static void Initialize()
{
if (_isInitialized)
{
return;
}
_creatureToBaitMap = new Dictionary<byte, string>();
foreach (BaitInfo allBait in GameInfo.AllBaits)
{
if ((Object)(object)allBait == (Object)null)
{
continue;
}
Plugin.Log.LogInfo((object)("Logging " + allBait._name));
foreach (ItemInfoWeight itemWeight in allBait.ItemWeights)
{
object obj;
if (itemWeight == null)
{
obj = null;
}
else
{
Fishable fishable = itemWeight.Fishable;
obj = ((fishable != null) ? fishable.ItemToSpawn : null);
}
if ((Object)obj == (Object)null)
{
continue;
}
Item itemToSpawn = itemWeight.Fishable.ItemToSpawn;
Creature val = (Creature)(object)((itemToSpawn is Creature) ? itemToSpawn : null);
if ((Object)(object)val != (Object)null)
{
if (Plugin.EnableDebugLogging.Value)
{
Plugin.Log.LogInfo((object)$"Found creature: {((Item)val).GetName()} with ID {((Item)val).ID} for bait {allBait._name}");
}
_creatureToBaitMap[((Item)val).ID] = allBait._name;
}
}
}
_isInitialized = true;
}
public static string GetBaitName(Creature creature)
{
if ((Object)(object)creature == (Object)null)
{
return "French Fry";
}
if (!_isInitialized)
{
Initialize();
}
if (_baitOverrides.TryGetValue(((Item)creature).ID, out string value))
{
return value;
}
if (_creatureToBaitMap.TryGetValue(((Item)creature).ID, out string value2))
{
return value2;
}
return "French Fry";
}
}
[HarmonyPatch]
public static class FishydexPatches
{
[CompilerGenerated]
private static class <>O
{
public static UnityAction <0>__OnDripButtonClicked;
}
public static Button _dripButton;
public static bool _showDrip = true;
[HarmonyPostfix]
[HarmonyPatch(typeof(PlayerThinking), "ToggleThinking", new Type[] { typeof(bool) })]
public static void ToggleThinking(PlayerThinking __instance, bool to)
{
//IL_005c: Unknown result type (might be due to invalid IL or missing references)
//IL_007f: Unknown result type (might be due to invalid IL or missing references)
//IL_00a2: Unknown result type (might be due to invalid IL or missing references)
//IL_00f1: Unknown result type (might be due to invalid IL or missing references)
//IL_00fc: Unknown result type (might be due to invalid IL or missing references)
//IL_0106: Unknown result type (might be due to invalid IL or missing references)
//IL_0139: Unknown result type (might be due to invalid IL or missing references)
//IL_01a1: Unknown result type (might be due to invalid IL or missing references)
//IL_01a3: Unknown result type (might be due to invalid IL or missing references)
//IL_01a8: Unknown result type (might be due to invalid IL or missing references)
//IL_0173: Unknown result type (might be due to invalid IL or missing references)
//IL_016c: Unknown result type (might be due to invalid IL or missing references)
//IL_01de: Unknown result type (might be due to invalid IL or missing references)
//IL_01ea: Unknown result type (might be due to invalid IL or missing references)
//IL_01b6: Unknown result type (might be due to invalid IL or missing references)
//IL_01bb: Unknown result type (might be due to invalid IL or missing references)
//IL_01bf: Unknown result type (might be due to invalid IL or missing references)
//IL_01c4: Unknown result type (might be due to invalid IL or missing references)
//IL_0217: Unknown result type (might be due to invalid IL or missing references)
//IL_021c: Unknown result type (might be due to invalid IL or missing references)
//IL_0222: Expected O, but got Unknown
if (!to)
{
return;
}
Transform val = ((Component)__instance).transform.Find("LocalCanvasHolder/ThinkingCanvas/CreatureDeck");
if ((Object)(object)val == (Object)null)
{
return;
}
Transform val2 = val.Find("PrevJournalScreen");
Transform val3 = val.Find("NextJournalScreen");
Transform val4 = val.Find("ProgressHolder");
if ((Object)(object)val2 != (Object)null)
{
val2.localPosition = new Vector3(-75f, -290f, 0f);
}
if ((Object)(object)val3 != (Object)null)
{
val3.localPosition = new Vector3(75f, -290f, 0f);
}
if ((Object)(object)val4 != (Object)null)
{
val4.localPosition = new Vector3(0f, -340f, 0f);
}
if (!((Object)(object)val.Find("DripButton") != (Object)null) && !((Object)(object)val3 == (Object)null))
{
GameObject val5 = Object.Instantiate<GameObject>(((Component)val3).gameObject, val);
((Object)val5).name = "DripButton";
val5.transform.localPosition = new Vector3(0f, val3.localPosition.y, val3.localPosition.z);
Image componentInChildren = val5.GetComponentInChildren<Image>();
if ((Object)(object)componentInChildren != (Object)null)
{
((Component)componentInChildren).transform.localRotation = Quaternion.Euler(0f, 0f, 0f);
componentInChildren.sprite = Plugin.DripIcon;
((Graphic)componentInChildren).color = (Color)(_showDrip ? Color.white : new Color(1f, 1f, 1f, 0.4f));
}
EventTrigger component = val5.GetComponent<EventTrigger>();
if ((Object)(object)component != (Object)null)
{
Object.DestroyImmediate((Object)(object)component);
}
Button component2 = val5.GetComponent<Button>();
Transition transition = (Transition)0;
ColorBlock colors = ColorBlock.defaultColorBlock;
if ((Object)(object)component2 != (Object)null)
{
transition = ((Selectable)component2).transition;
colors = ((Selectable)component2).colors;
Object.DestroyImmediate((Object)(object)component2);
}
_dripButton = val5.AddComponent<Button>();
((Selectable)_dripButton).transition = transition;
((Selectable)_dripButton).colors = colors;
((Selectable)_dripButton).targetGraphic = (Graphic)(object)componentInChildren;
ButtonClickedEvent onClick = _dripButton.onClick;
object obj = <>O.<0>__OnDripButtonClicked;
if (obj == null)
{
UnityAction val6 = OnDripButtonClicked;
<>O.<0>__OnDripButtonClicked = val6;
obj = (object)val6;
}
((UnityEvent)onClick).AddListener((UnityAction)obj);
ThinkingUI val7 = ((Component)__instance).GetComponentInParent<ThinkingUI>() ?? Object.FindAnyObjectByType<ThinkingUI>();
if ((Object)(object)val7 != (Object)null && val7._cloudlyTransforms != null)
{
RegisterCloudyTransform(val7, val3, val5.transform);
}
}
}
private static void OnDripButtonClicked()
{
//IL_007b: Unknown result type (might be due to invalid IL or missing references)
//IL_0074: Unknown result type (might be due to invalid IL or missing references)
_showDrip = !_showDrip;
if (Plugin.EnableDebugLogging.Value)
{
Plugin.Log.LogInfo((object)$"Drip button clicked! Show drip mode: {_showDrip}");
}
if ((Object)(object)_dripButton != (Object)null)
{
Image componentInChildren = ((Component)_dripButton).GetComponentInChildren<Image>();
if ((Object)(object)componentInChildren != (Object)null)
{
((Graphic)componentInChildren).color = (Color)(_showDrip ? Color.white : new Color(1f, 1f, 1f, 0.4f));
}
}
ThinkingUI val = Object.FindAnyObjectByType<ThinkingUI>();
if ((Object)(object)val != (Object)null)
{
((MonoBehaviour)val).StartCoroutine(val.UpdateJournal());
}
else
{
Plugin.Log.LogWarning((object)"Could not find active ThinkingUI instance to refresh journal slots.");
}
}
private static void RegisterCloudyTransform(ThinkingUI thinkingUI, Transform originalRoot, Transform cloneRoot)
{
for (int i = 0; i < thinkingUI._cloudlyTransforms.Count; i++)
{
Transform val = thinkingUI._cloudlyTransforms[i];
if ((Object)(object)val == (Object)null)
{
continue;
}
if ((Object)(object)val == (Object)(object)originalRoot)
{
if (!thinkingUI._cloudlyTransforms.Contains(cloneRoot))
{
thinkingUI._cloudlyTransforms.Add(cloneRoot);
}
break;
}
if (val.IsChildOf(originalRoot))
{
string relativePath = GetRelativePath(originalRoot, val);
Transform val2 = cloneRoot.Find(relativePath);
if ((Object)(object)val2 != (Object)null && !thinkingUI._cloudlyTransforms.Contains(val2))
{
thinkingUI._cloudlyTransforms.Add(val2);
}
break;
}
}
}
private static string GetRelativePath(Transform root, Transform target)
{
List<string> list = new List<string>();
Transform val = target;
while ((Object)(object)val != (Object)null && (Object)(object)val != (Object)(object)root)
{
list.Add(((Object)val).name);
val = val.parent;
}
list.Reverse();
return string.Join("/", list);
}
[HarmonyPostfix]
[HarmonyPatch(typeof(JournalSlot), "SetCreature")]
public static void SetCreature(JournalSlot __instance, Creature creature)
{
//IL_0073: Unknown result type (might be due to invalid IL or missing references)
//IL_01dc: Unknown result type (might be due to invalid IL or missing references)
if ((Object)(object)creature == (Object)null)
{
if (!((Object)(object)__instance._worthText != (Object)null) || !((Object)(object)((TMP_Text)__instance._worthText).transform.parent != (Object)null))
{
return;
}
Transform val = ((TMP_Text)__instance._worthText).transform.parent.Find("BaitText");
if ((Object)(object)val != (Object)null)
{
TextMeshProUGUI component = ((Component)val).GetComponent<TextMeshProUGUI>();
if ((Object)(object)component != (Object)null)
{
((TMP_Text)component).text = "";
}
}
return;
}
if ((int)creature.BossType == 0)
{
SavedCreature savedCreature = SaveManager.GetSavedCreature(creature);
bool flag = savedCreature.KilledDrip && _showDrip;
if ((Object)(object)__instance._filter != (Object)null)
{
__instance._filter.mesh = (flag ? ((Item)creature).DripMesh : ((Item)creature).Mesh);
}
if ((Object)(object)__instance._dripText != (Object)null)
{
__instance._dripText.SetDrip(savedCreature.BeenKilled && flag);
}
}
if (Plugin.EnableDebugLogging.Value)
{
Plugin.Log.LogInfo((object)$"SetCreature called for creature: {((Item)creature).GetName()} with ID {((Item)creature).ID}");
}
if ((Object)(object)__instance._worthText == (Object)null || (Object)(object)((TMP_Text)__instance._worthText).transform.parent == (Object)null)
{
return;
}
Transform val2 = ((TMP_Text)__instance._worthText).transform.parent.Find("BaitText");
if ((Object)(object)val2 != (Object)null)
{
if (!(((TMP_Text)__instance._worthText).text == ""))
{
TextMeshProUGUI component2 = ((Component)val2).GetComponent<TextMeshProUGUI>();
if ((Object)(object)component2 != (Object)null)
{
((TMP_Text)component2).text = GetBaitName(creature);
}
}
return;
}
GameObject val3 = Object.Instantiate<GameObject>(((Component)__instance._worthText).gameObject, ((TMP_Text)__instance._worthText).transform.parent);
((Object)val3).name = "BaitText";
val3.transform.localPosition = new Vector3(0f, -120f, 0f);
TextMeshProUGUI component3 = val3.GetComponent<TextMeshProUGUI>();
if ((Object)(object)component3 != (Object)null)
{
((TMP_Text)component3).fontSize = 16f;
if (((TMP_Text)__instance._worthText).text != "")
{
((TMP_Text)component3).text = GetBaitName(creature);
}
}
}
private static string GetBaitName(Creature creature)
{
return CreatureBaitHelper.GetBaitName(creature);
}
}
}
namespace System.Diagnostics.CodeAnalysis
{
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class ConstantExpectedAttribute : Attribute
{
public object? Min { get; set; }
public object? Max { get; set; }
}
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class ExperimentalAttribute : Attribute
{
public string DiagnosticId { get; }
public string? UrlFormat { get; set; }
public ExperimentalAttribute(string diagnosticId)
{
DiagnosticId = diagnosticId;
}
}
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
[ExcludeFromCodeCoverage]
internal sealed class MemberNotNullAttribute : Attribute
{
public string[] Members { get; }
public MemberNotNullAttribute(string member)
{
Members = new string[1] { member };
}
public MemberNotNullAttribute(params string[] members)
{
Members = members;
}
}
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
[ExcludeFromCodeCoverage]
internal sealed class MemberNotNullWhenAttribute : Attribute
{
public bool ReturnValue { get; }
public string[] Members { get; }
public MemberNotNullWhenAttribute(bool returnValue, string member)
{
ReturnValue = returnValue;
Members = new string[1] { member };
}
public MemberNotNullWhenAttribute(bool returnValue, params string[] members)
{
ReturnValue = returnValue;
Members = members;
}
}
[AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class SetsRequiredMembersAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class StringSyntaxAttribute : Attribute
{
public const string CompositeFormat = "CompositeFormat";
public const string DateOnlyFormat = "DateOnlyFormat";
public const string DateTimeFormat = "DateTimeFormat";
public const string EnumFormat = "EnumFormat";
public const string GuidFormat = "GuidFormat";
public const string Json = "Json";
public const string NumericFormat = "NumericFormat";
public const string Regex = "Regex";
public const string TimeOnlyFormat = "TimeOnlyFormat";
public const string TimeSpanFormat = "TimeSpanFormat";
public const string Uri = "Uri";
public const string Xml = "Xml";
public string Syntax { get; }
public object?[] Arguments { get; }
public StringSyntaxAttribute(string syntax)
{
Syntax = syntax;
Arguments = new object[0];
}
public StringSyntaxAttribute(string syntax, params object?[] arguments)
{
Syntax = syntax;
Arguments = arguments;
}
}
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class UnscopedRefAttribute : Attribute
{
}
}
namespace System.Runtime.Versioning
{
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class RequiresPreviewFeaturesAttribute : Attribute
{
public string? Message { get; }
public string? Url { get; set; }
public RequiresPreviewFeaturesAttribute()
{
}
public RequiresPreviewFeaturesAttribute(string? message)
{
Message = message;
}
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class CallerArgumentExpressionAttribute : Attribute
{
public string ParameterName { get; }
public CallerArgumentExpressionAttribute(string parameterName)
{
ParameterName = parameterName;
}
}
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class CollectionBuilderAttribute : Attribute
{
public Type BuilderType { get; }
public string MethodName { get; }
public CollectionBuilderAttribute(Type builderType, string methodName)
{
BuilderType = builderType;
MethodName = methodName;
}
}
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class CompilerFeatureRequiredAttribute : Attribute
{
public const string RefStructs = "RefStructs";
public const string RequiredMembers = "RequiredMembers";
public string FeatureName { get; }
public bool IsOptional { get; set; }
public CompilerFeatureRequiredAttribute(string featureName)
{
FeatureName = featureName;
}
}
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class InterpolatedStringHandlerArgumentAttribute : Attribute
{
public string[] Arguments { get; }
public InterpolatedStringHandlerArgumentAttribute(string argument)
{
Arguments = new string[1] { argument };
}
public InterpolatedStringHandlerArgumentAttribute(params string[] arguments)
{
Arguments = arguments;
}
}
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class InterpolatedStringHandlerAttribute : Attribute
{
}
[EditorBrowsable(EditorBrowsableState.Never)]
[ExcludeFromCodeCoverage]
internal static class IsExternalInit
{
}
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class ModuleInitializerAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class OverloadResolutionPriorityAttribute : Attribute
{
public int Priority { get; }
public OverloadResolutionPriorityAttribute(int priority)
{
Priority = priority;
}
}
[AttributeUsage(AttributeTargets.Parameter, Inherited = true, AllowMultiple = false)]
[ExcludeFromCodeCoverage]
internal sealed class ParamCollectionAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class RequiredMemberAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[ExcludeFromCodeCoverage]
internal sealed class RequiresLocationAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Interface, Inherited = false)]
[ExcludeFromCodeCoverage]
internal sealed class SkipLocalsInitAttribute : Attribute
{
}
}