Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# check if object is default

if (argument is ValueType)
{
   object obj = Activator.CreateInstance(argument.GetType());
   return obj.Equals(argument);
}
 
PREVIOUS NEXT
Tagged: #check #object #default
ADD COMMENT
Topic
Name
4+3 =