view Source/Reflection/InitContext.cs @ 7:99cd4f3947d8

Закомментированы строки мешающие добавлению авиа дежурств.
author nickolay
date Fri, 27 Oct 2017 18:26:29 +0300
parents 8f65451dc28f
children
line wrap: on
line source

using System;
using System.Collections.Generic;
using System.Diagnostics;

using BLToolkit.Mapping;

namespace BLToolkit.Reflection
{
	public class InitContext
	{
		public object[]       MemberParameters { get; set; }
		public object[]       Parameters       { get; set; }
		public bool           IsInternal       { get; set; }
		public bool           IsLazyInstance   { get; set; }
		public object         Parent           { get; set; }
		public object         SourceObject     { get; set; }
		public ObjectMapper   ObjectMapper     { get; set; }
		public MappingSchema  MappingSchema    { get; set; }
		public bool           IsSource         { get; set; }
		public bool           StopMapping      { get; set; }
		[CLSCompliant(false)]
		public IMapDataSource DataSource       { get; set; }
        public int[]          MappingIndex     { get; set; }

		private Dictionary<object,object> _items;
		public  Dictionary<object,object>  Items
		{
			[DebuggerStepThrough] 
			get { return _items ?? (_items = new Dictionary<object, object>()); }
		}

		public  bool  IsDestination
		{
			[DebuggerStepThrough] get { return !IsSource;  }
			[DebuggerStepThrough] set { IsSource = !value; }
		}
	}
}