Exemplo n.º 1
0
 /// <summary>
 /// Allocates a unique identifier for a control converter instance.
 /// </summary>
 /// <param name="converter">The object representing the control.</param>
 /// <returns>The newly allocated identifier.</returns>
 string IConverterContext.AllocateIdentifier(IControlConverter converter)
 {
     var prefix = converter.GetType().Name;
     var id = AllocateIdentifier(prefix);
     _controls[id] = converter;
     return id;
 }