The post Cast Object to T appeared first on Hyper Byte Labs.
]]>if (readData is T) {
return (T)readData;
}
try {
return (T)Convert.ChangeType(readData, typeof(T));
}
catch (InvalidCastException) {
return default(T);
}
The post Cast Object to T appeared first on Hyper Byte Labs.
]]>The post ASP.Net C# Clean Exit to Exit Web Application Without Errors appeared first on Hyper Byte Labs.
]]>The post C# Base URL or Current Page URL appeared first on Hyper Byte Labs.
]]>