コード例 #1
0
 internal static void ValidInt(int c, Net.Vpc.Upa.Impl.Config.Annotationparser.OverriddenValue <int?> oldVal, int nullVal, int processOrder)
 {
     if (c != nullVal)
     {
         oldVal.SetBetterValue(c, processOrder);
     }
 }
コード例 #2
0
 internal static void ValidStr(string c, Net.Vpc.Upa.Impl.Config.Annotationparser.OverriddenValue <string> oldVal, int processOrder)
 {
     if (c != null)
     {
         c = c.Trim();
         if ((c).Length > 0)
         {
             oldVal.SetBetterValue(c, processOrder);
         }
     }
 }
コード例 #3
0
 internal static void ValidClass(System.Type c, Net.Vpc.Upa.Impl.Config.Annotationparser.OverriddenValue <System.Type> oldVal, System.Type type, int processOrder)
 {
     if (c != null && !c.Equals(typeof(void)))
     {
         if (type.IsAssignableFrom(c))
         {
             oldVal.SetBetterValue(c, processOrder);
         }
         else
         {
             throw new System.ArgumentException("Expected type " + type);
         }
     }
 }