コード例 #1
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);
		}
コード例 #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));
        }
コード例 #3
0
        public static string Text(this DateTime values)
        {
            IVauctionConfiguration config = (IVauctionConfiguration)ConfigurationManager.GetSection("Vauction");

            return(Text(values, config.GetProperty("DateFormat")));
        }
コード例 #4
0
 public static string Text(this DateTime values, IVauctionConfiguration config)
 {
     return(Text(values, config.GetProperty("DateFormat")));
 }
コード例 #5
0
		public static string Text(this DateTime values, IVauctionConfiguration config)
		{
			return Text(values, config.GetProperty("DateFormat") );
		}