コード例 #1
0
ファイル: Delegate.cs プロジェクト: RozenbergMikhail/Optimum
		/// <summary>
		/// Creates new instance of <see cref="Delegate"/>
		/// </summary>
		/// <param name="initData">initialization data</param>
		public Delegate(DelegateInitData initData)
		{
			if (initData == null)
				throw new MemoryPointerIsNullException("initData");

			this.Id = initData.Id;
			this.UserId = initData.UserId;
			this.Surname = initData.Surname;
		}
コード例 #2
0
        /// <summary>
        /// Creates new instance of <see cref="Delegate"/>
        /// </summary>
        /// <param name="initData">initialization data</param>
        public Delegate(DelegateInitData initData)
        {
            if (initData == null)
            {
                throw new MemoryPointerIsNullException("initData");
            }

            this.Id      = initData.Id;
            this.UserId  = initData.UserId;
            this.Surname = initData.Surname;
        }