/// <summary>Tries to cast the static methods of a type to an interface. Methods that don't match will return <see cref="NotImplementedException"/>.</summary> /// <param name="from">The type containing static methods</param> /// <param name="to">The type of the interface to cast to</param> public static object Cast(Type from, Type to) => Static.Cast(from, to, MissingMethods.NotImplemented);
/// <summary>Tries to cast the static methods of a type to an interface</summary> /// <param name="from">The type containing static methods</param> /// <param name="to">The type of the interface to cast to</param> /// <exception cref="InvalidCastException">Is thrown then the static methods of the <paramref name="from"/> Type does not match the interface</exception> public static object Cast(Type from, Type to) => Static.Cast(from, to, MissingMethods.InvalidCast);