Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home5/programz/hyperbytelabs.com/wp-content/plugins/revslider/includes/operations.class.php on line 2715

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home5/programz/hyperbytelabs.com/wp-content/plugins/revslider/includes/operations.class.php on line 2719

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home5/programz/hyperbytelabs.com/wp-content/plugins/revslider/includes/output.class.php on line 3615
2022-03-06 - Hyper Byte Labs

Day

March 6, 2022
First test to see if the object is a castable class if that doesn’t work for basic types int string etc then you will use Convert.ChangeType.. if (readData is T) { return (T)readData; } try { return (T)Convert.ChangeType(readData, typeof(T)); } catch (InvalidCastException) { return default(T); }
Read More