コード例 #1
0
ファイル: XmlAccessor.cs プロジェクト: elevine/Core
		protected XmlAccessor(Type clrType, IXmlContext context)
		{
			if (clrType == null)
				throw Error.ArgumentNull("clrType");
			if (context == null)
				throw Error.ArgumentNull("context");

			clrType         = clrType.NonNullable();
			this.clrType    = clrType;
			this.xsiType    = context.GetDefaultXsiType(clrType);
			this.serializer = XmlTypeSerializer.For(clrType);
			this.context    = context;
		}
コード例 #2
0
		public XmlDefaultBehaviorAccessor(string name, Type type, IXmlContext context)
			: base(name, type, context) { }
コード例 #3
0
		public XmlDefaultBehaviorAccessor(Type type, IXmlContext context)
			: base(type, context) { }
コード例 #4
0
ファイル: XmlAccessor.cs プロジェクト: elevine/Core
		private void SetContext(IXmlContext value)
		{
			if (null == value)
				throw Error.ArgumentNull("value");

			context = value;
		}
コード例 #5
0
ファイル: XmlAccessor.cs プロジェクト: elevine/Core
		protected IXmlContext CloneContext()
		{
			if (0 == (state & States.ConfiguredContext))
			{
				context = context.Clone();
				state |= States.ConfiguredContext;
			}
			return context;
		}
コード例 #6
0
ファイル: XmlSelfAccessor.cs プロジェクト: jeremymeng/Core
		public XmlSelfAccessor(Type clrType, IXmlContext context)
			: base(clrType, context) { }