public static string Teaser(this string s, IVauctionConfiguration config)
		{
			char[] anyOf = config.GetProperty("Punctuation").ToCharArray();

			int TeaserLenght = Convert.ToInt32( config.GetProperty("TeaserLenght") );

			return s.Substring(0, s.IndexOfAny(anyOf, TeaserLenght) + 1);
		}
예제 #2
0
        public static string Teaser(this string s, IVauctionConfiguration config)
        {
            char[] anyOf = config.GetProperty("Punctuation").ToCharArray();

            int TeaserLenght = Convert.ToInt32(config.GetProperty("TeaserLenght"));

            return(s.Substring(0, s.IndexOfAny(anyOf, TeaserLenght) + 1));
        }
        public static string Text(this DateTime values)
        {
            IVauctionConfiguration config = (IVauctionConfiguration)ConfigurationManager.GetSection("Vauction");

            return(Text(values, config.GetProperty("DateFormat")));
        }
 public static string Text(this DateTime values, IVauctionConfiguration config)
 {
     return(Text(values, config.GetProperty("DateFormat")));
 }
		public static string Text(this DateTime values, IVauctionConfiguration config)
		{
			return Text(values, config.GetProperty("DateFormat") );
		}