private void My MethodName(object MyObjectName)
{
	switch (Convert.GetTypeCode(MyObjectName))
	{
	case TypeCode.Boolean:
		break;

	case TypeCode.Byte:
		break;

	case TypeCode.Char:
		break;

	case TypeCode.DateTime:
		break;

	case TypeCode.Decimal:
		break;

	case TypeCode.Double:
		break;

	case TypeCode.Int16:
		break;

	case TypeCode.Int32:
		break;

	case TypeCode.Int64:
		break;

	case TypeCode.SByte:
		break;

	case TypeCode.Single:
		break;

	case TypeCode.String:
		break;

	case TypeCode.UInt16:
		break;

	case TypeCode.UInt32:
		break;

	case TypeCode.UInt64:
		break;

	} //switch (Convert.GetTypeCode(MyObjectName))
}
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published. Required fields are marked *