예제 #1
0
 public static Fortify_Scan mapDescriptions(this Fortify_Scan fortifyScan)
 {
     foreach (var description in fortifyScan._fvdl.Description)
     {
         var fortifyDescription = new Fortify_Description
         {
             Abstract        = description.Abstract,
             ClassID         = description.classID,
             ContentType     = description.contentType,
             Explanation     = description.Explanation,
             Recommendations = description.Recommendations,
         };
         if (description.Tips.notNull())
         {
             foreach (var tip in description.Tips.Tip)
             {
                 fortifyDescription.Tips.Add(tip);
             }
         }
         fortifyScan.Descriptions.add(fortifyDescription);
     }
     return(fortifyScan);
 }
예제 #2
0
		public static Fortify_Scan mapDescriptions(this Fortify_Scan fortifyScan)
		{			 	
				foreach(var description in fortifyScan._fvdl.Description)
				{
	  		    	var fortifyDescription = new Fortify_Description
	  		    			{
	  		    				Abstract = description.Abstract,
	  		    				ClassID = description.classID,
	  		    				ContentType = description.contentType,	  		    				
	  		    				Explanation = description.Explanation,
	  		    				Recommendations = description.Recommendations,
			    			};
			    	if (description.Tips.notNull())
			    		foreach(var tip in description.Tips.Tip)
			    			fortifyDescription.Tips.Add(tip);
			    	fortifyScan.Descriptions.add(fortifyDescription);	
			    }
			    return fortifyScan;
		}