Is Date Time Offset - CSharp System

CSharp examples for System:DateTime

Description

Is Date Time Offset

Demo Code


using System.Reflection;
using System.Linq;
using System.Collections.Generic;
using System;/*  w ww .ja  v a  2  s .c om*/

public class Main{
        public static bool IsDateTimeOffset(this Type type)
        {
            return type == typeof(DateTimeOffset) || type == typeof(DateTimeOffset?);
        }
}

Related Tutorials