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