/// <summary> /// Populate the specified property with a valid Twitter handle /// </summary> /// <typeparam name="T">The target object type</typeparam> /// <param name="configurator"></param> /// <returns>A configurator for the specified object type</returns> public static GenFuConfigurator <T> AsTwitterHandle <T>(this GenFuStringConfigurator <T> configurator) where T : new() { CustomFiller <string> filler = new CustomFiller <string>(configurator.PropertyInfo.Name, typeof(T), () => ContactInformation.Twitter()); configurator.Maggie.RegisterFiller(filler); return(configurator); }
public override object GetValue(object instance) { return(ContactInformation.Twitter()); }