Ejemplo n.º 1
0
 public virtual Object Create(IBM.ICU.Impl.ICUService.Key key, ICUService serviceArg)
 {
     if (key.CurrentID().Equals(greetingID))
     {
         Object previous = serviceArg.GetKey(key, null, this);
         return("A different greeting: \"" + previous + "\"");
     }
     return(null);
 }
Ejemplo n.º 2
0
 public object Create(ICUServiceKey key, ICUService serviceArg)
 {
     if (key.CurrentID.Equals(greetingID))
     {
         object previous = serviceArg.GetKey(key, this);
         return("A different greeting: \"" + previous + "\"");
     }
     return(null);
 }
Ejemplo n.º 3
0
 public override Object Create(IBM.ICU.Impl.ICUService.Key key, ICUService service)
 {
     if (HandlesKey(key))
     {
         IBM.ICU.Impl.ICULocaleService.LocaleKey lkey = (IBM.ICU.Impl.ICULocaleService.LocaleKey)key;
         ULocale loc    = lkey.CanonicalLocale();
         Object  result = delegat0.CreateCalendar(loc);
         if (result == null)
         {
             result = service.GetKey(key, null, this);
         }
         return(result);
     }
     return(null);
 }
Ejemplo n.º 4
0
            public override object Create(ICUServiceKey key, ICUService srvc)
            {
                if (!HandlesKey(key) || !(key is LocaleKey))
                {
                    return(null);
                }

                LocaleKey lkey   = (LocaleKey)key;
                object    result = @delegate.CreateFormat(lkey.GetCanonicalCulture(), lkey.Kind);

                if (result == null)
                {
                    result = srvc.GetKey(key, this);
                }
                return(result);
            }