Changeset 14970 for lang/csharp

Show
Ignore:
Timestamp:
07/01/08 03:44:20 (5 months ago)
Author:
mayuki
Message:

* ジェネリックパラメータの制約を追加
* 余分な記述を削除

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/csharp/CommandLineParser/CommandLineParser/CommandLineParser.cs

    r14967 r14970  
    2727using System; 
    2828using System.Collections.Generic; 
     29using System.ComponentModel; 
     30using System.Reflection; 
    2931using System.Text; 
    30 using System.Reflection; 
    31 using System.ComponentModel; 
    32 using System.Diagnostics; 
    3332 
    3433namespace Misuzilla.Utilities 
    3534{ 
    36     public class CommandLineParser<T> 
     35    public class CommandLineParser<T> where T : class  
    3736    { 
    3837        private Type _type; 
     
    109108                { 
    110109                    //keyName = String.Format("{0}{1}{2}<true|false>", Prefix, optionName, ValueParamSeparator[0]); 
    111                     keyName = String.Format("{0}{1}", Prefix, optionName, ValueParamDelimiter[0]); 
     110                    keyName = String.Format("{0}{1}", Prefix, optionName); 
    112111                } 
    113112                else