public override void ExecuteCmdlet() { IList <string> Types = new List <string>(); foreach (string type in Type) { Types.Add(type); } PSSpatialSpec pSSpatialSpec = new PSSpatialSpec { Path = Path, Types = Types }; WriteObject(pSSpatialSpec); return; }
public override void ExecuteCmdlet() { PSSpatialSpec pSSpatialSpec = new PSSpatialSpec(); if (Type != null && Type.Length > 0) { IList <string> Types = new List <string>(); foreach (string type in Type) { Types.Add(type); } pSSpatialSpec.Types = Types; } if (Path != null) { pSSpatialSpec.Path = Path; } WriteObject(pSSpatialSpec); return; }