diff Source/Reflection/InitContext.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children 8f65451dc28f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Source/Reflection/InitContext.cs	Thu Mar 27 21:46:09 2014 +0400
@@ -0,0 +1,37 @@
+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; }
+
+		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; }
+		}
+	}
+}