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); }
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); }
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); }
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); }