コード例 #1
0
 /// <summary>
 /// For multi-value properties of type 'run[]', returns property items as RunCompact[]
 /// </summary>
 public static RunCompact[] ToRunsArray(this PropertyCompact property)
 {
     if ((property.Type ?? string.Empty) != PropertyTypes.RUN + PropertyTypes.LIST_SUFFIX)
     {
         return(null);
     }
     return(property.ToResourceArray <RunCompact>());
 }
コード例 #2
0
 /// <summary>
 /// For multi-value properties of type 'appsession[]', returns property items as AppSessionCompact[]
 /// </summary>
 public static AppSessionCompact[] ToAppSessionArray(this PropertyCompact property)
 {
     if ((property.Type ?? string.Empty) != PropertyTypes.APPSESSION + PropertyTypes.LIST_SUFFIX)
     {
         return(null);
     }
     return(property.ToResourceArray <AppSessionCompact>());
 }
コード例 #3
0
 /// <summary>
 /// For multi-value properties of type 'appresult[]', returns property items as AppResultCompact[]
 /// </summary>
 public static AppResultCompact[] ToAppResultArray(this PropertyCompact property)
 {
     if ((property.Type ?? string.Empty) != PropertyTypes.APPRESULT + PropertyTypes.LIST_SUFFIX)
     {
         return(null);
     }
     return(property.ToResourceArray <AppResultCompact>());
 }
コード例 #4
0
 /// <summary>
 /// For multi-value properties of type 'project[]', returns property items as ProjectCompact[]
 /// </summary>
 public static ProjectCompact[] ToProjectArray(this PropertyCompact property)
 {
     if ((property.Type ?? string.Empty) != PropertyTypes.PROJECT + PropertyTypes.LIST_SUFFIX)
     {
         return(null);
     }
     return(property.ToResourceArray <ProjectCompact>());
 }
コード例 #5
0
 /// <summary>
 /// For multi-value properties of type 'sample[]', returns property items as SampleCompact[]
 /// </summary>
 public static SampleCompact[] ToSampleArray(this PropertyCompact property)
 {
     if ((property.Type ?? string.Empty) != PropertyTypes.SAMPLE + PropertyTypes.LIST_SUFFIX)
     {
         return(null);
     }
     return(property.ToResourceArray <SampleCompact>());
 }