示例#1
0
		/// <summary>
		/// Register is called by a MarshalContext to allow the
		/// converter instance to register itself in the context
		/// with all appropriate value types and interfaces.
		/// </summary>
		public void Register(IMarshalContext context)
		{
			context.RegisterConverter( __type, this );
			context.RegisterConverter( __arrayType, this );
			context.Alias( "char", __type );
			context.Alias( "chars", __arrayType );
		}
示例#2
0
		/// <summary>
		/// Register is called by a MarshalContext to allow the
		/// converter instance to register itself in the context
		/// with all appropriate value types and interfaces.
		/// </summary>
		public void Register(IMarshalContext context)
		{
			context.RegisterConverter( __type, this );
			context.Alias( "type", __type );
		}
 private XStreamBase(MarshalContext context)
 {
     this.context = context;
     marshaller   = new XStreamMarshaller();
     context.Alias("GenericHolder", typeof(GenericObjectHolder));
 }
 public virtual void Register(IMarshalContext context)
 {
     context.RegisterConverter(type, this);
     context.Alias(controlTypeAlias, type);
 }
示例#5
0
 /// <summary>
 /// Register is called by a MarshalContext to allow the
 /// converter instance to register itself in the context
 /// with all appropriate value types and interfaces.
 /// </summary>
 public void Register(IMarshalContext context)
 {
     context.RegisterConverter(__type, this);
     context.Alias("array", __type);
 }