Skip to Main Content

BTD_Mod_Helper​.Extensions​.FileInfoExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

FileInfoExt Class

Extensions for FileInfo

public static class FileInfoExt

Inheritance System.Object  FileInfoExt

Methods

FileInfoExt.GetAllReferences(this FileInfo) Method

Get all Assembly References from this FileInfo. Returns null if there are none

public static System.Reflection.AssemblyName[] GetAllReferences(this System.IO.FileInfo fileInfo);

Parameters

fileInfo System.IO.FileInfo

Returns

System.Reflection.AssemblyName[]

FileInfoExt.IsMelonMod(this FileInfo) Method

Returns whether or not this File has a reference to the newer MelonLoader.dll or the older MelonLoader.ModHandler.dll

public static bool IsMelonMod(this System.IO.FileInfo fileInfo);

Parameters

fileInfo System.IO.FileInfo

Returns

System.Boolean

FileInfoExt.IsNewerMelonMod(this FileInfo) Method

Returns whether or not this File has a reference to the newer MelonLoader.dll (For MelonLoader 3.0 and up)

public static bool IsNewerMelonMod(this System.IO.FileInfo fileInfo);

Parameters

fileInfo System.IO.FileInfo

Returns

System.Boolean

FileInfoExt.IsOlderMelonMod(this FileInfo) Method

Returns whether or not this File has a reference to the older MelonLoader.ModHandler.dll (For MelonLoader 2.7.4 and
below)

public static bool IsOlderMelonMod(this System.IO.FileInfo fileInfo);

Parameters

fileInfo System.IO.FileInfo

Returns

System.Boolean

To learn how to download BTD Mod Helper and install mods, click here