public static IList<PSWorkspaceCollectionAccessKey> CreateList(WorkspaceCollectionAccessKeys accessKeys)
 {
     return new List<PSWorkspaceCollectionAccessKey>
     {
         new PSWorkspaceCollectionAccessKey
         {
             KeyName = "Key1",
             Value = accessKeys.Key1
         },
         new PSWorkspaceCollectionAccessKey
         {
             KeyName = "Key2",
             Value = accessKeys.Key2
         }
     };
 }
 public static IList <PSWorkspaceCollectionAccessKey> CreateList(WorkspaceCollectionAccessKeys accessKeys)
 {
     return(new List <PSWorkspaceCollectionAccessKey>
     {
         new PSWorkspaceCollectionAccessKey
         {
             KeyName = "Key1",
             Value = accessKeys.Key1
         },
         new PSWorkspaceCollectionAccessKey
         {
             KeyName = "Key2",
             Value = accessKeys.Key2
         }
     });
 }
 protected void WriteWorkspaceCollectionAccessKeys(WorkspaceCollectionAccessKeys accessKeys)
 {
     this.WriteObject(PSWorkspaceCollectionAccessKey.CreateList(accessKeys), true);
 }
 protected void WriteWorkspaceCollectionAccessKeys(WorkspaceCollectionAccessKeys accessKeys)
 {
     this.WriteObject(PSWorkspaceCollectionAccessKey.CreateList(accessKeys), true);
 }