コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="IManager"/> class
        /// </summary>
        /// <param name="item">The item</param>
        public Manager(ManagerCI item)
            : base(item.Id, item.Name as IReadOnlyDictionary <CultureInfo, string>)
        {
            Guard.Argument(item, nameof(item)).NotNull();

            Nationalities = item.Nationality as IReadOnlyDictionary <CultureInfo, string>;
            CountryCode   = item.CountryCode;
        }
コード例 #2
0
ファイル: Manager.cs プロジェクト: biosid/UnifiedOddsSdkNet
        /// <summary>
        ///     Initializes a new instance of the <see cref="IManager" /> class
        /// </summary>
        /// <param name="item">The item</param>
        public Manager(ManagerCI item)
            : base(item.Id, item.Name as IReadOnlyDictionary <CultureInfo, string>)
        {
            Contract.Requires(item != null);

            Nationalities = item.Nationality as IReadOnlyDictionary <CultureInfo, string>;
            CountryCode   = item.CountryCode;
        }