ExplicitAboutDateTime.Location.Location C# (CSharp) Method

Location() public method

public Location ( string locationCode, string locationName, TimeZoneInfo timeZoneInfo ) : System
locationCode string
locationName string
timeZoneInfo System.TimeZoneInfo
return System
        public Location(string locationCode, string locationName, TimeZoneInfo timeZoneInfo)
        {
            if (string.IsNullOrEmpty(locationCode))
                throw new ArgumentNullException(nameof(LocationCode));

            if (string.IsNullOrEmpty(locationName))
                throw new ArgumentNullException(nameof(locationName));

            if (timeZoneInfo == null)
                throw new ArgumentNullException(nameof(timeZoneInfo));

            this.LocationCode = locationCode;
            this.LocationName = locationName;
            this.TimeZoneInfo = timeZoneInfo;
        }
Location