/// <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>()); }
/// <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>()); }
/// <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>()); }
/// <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>()); }
/// <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>()); }