SobaScript.Z.VS/BuildComponent.cs
/// <summary>
/// Unpacks ProjectsMap.Project struct for user.
/// </summary>
/// <param name="project"></param>
/// <param name="pm"></param>
/// <returns></returns>
Unpacks ProjectsMap.Project struct for user.
Unpacks ProjectsMap . Project struct for user .
[Property("name", "The name of project.", "", nameof(StSlnPMap), CValType.String)]
        [Property("path", "Path to project.", "", nameof(StSlnPMap), CValType.String)]
        [Property("type", "Type of project.", "", nameof(StSlnPMap), CValType.String)]
        [Property("guid", "Guid of project.", "", nameof(StSlnPMap), CValType.String)]
        private protected string UseProjectsMap(ProjectItem project, IPM pm)
        {
            if(pm.FinalEmptyIs(LevelType.Property, "name")) {
                return project.name;
            }
            if(pm.FinalEmptyIs(LevelType.Property, "path")) {
                return project.path;
            }
            if(pm.FinalEmptyIs(LevelType.Property, "type")) {
                return project.type;
            }
            if(pm.FinalEmptyIs(LevelType.Property, "guid")) {
                return project.guid;
            }
            throw new IncorrectNodeException(pm);
        }
[ Property ( " " , " " , " " , nameof ( StSlnPMap ) , CValType . String ) ] [ Property ( " " , " " , " " , nameof ( StSlnPMap ) , CValType . String ) ] [ Property ( " " , " " , " " , nameof ( StSlnPMap ) , CValType . String ) ] [ Property ( " " , " " , " " , nameof ( StSlnPMap ) , CValType . String ) ] private protected string UseProjectsMap ( ProjectItem project , IPM pm ) { if ( pm . FinalEmptyIs ( LevelType . Property , " " ) ) { return project . name ; } if ( pm . FinalEmptyIs ( LevelType . Property , " " ) ) { return project . path ; } if ( pm . FinalEmptyIs ( LevelType . Property , " " ) ) { return project . type ; } if ( pm . FinalEmptyIs ( LevelType . Property , " " ) ) { return project . guid ; } throw new IncorrectNodeException ( pm ) ; }
Unpacks ProjectsMap.Project struct for user.
Unpacks ProjectsMap . Project struct for user .
None
project
ProjectItem
None
pm
IPM
None