Esempio n. 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 );
		}
Esempio n. 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 );
		}
Esempio n. 3
0
 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);
 }
Esempio n. 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);
 }