예제 #1
0
        /// <summary>
        /// Reads a <see cref="FileArtifactWithAttributes"/>
        /// </summary>
        public FileArtifactWithAttributes ReadFileArtifactWithAttributes()
        {
            Start <FileArtifactWithAttributes>();
            var value = FileArtifactWithAttributes.Deserialize(this);

            End();
            return(value);
        }
예제 #2
0
 /// <summary>
 /// Constructs <see cref="FileArtifactWithAttributes"/> based on the current FileAttribute instance
 /// with specified <paramref name="fileExistence"/> attibute.
 /// </summary>
 public FileArtifactWithAttributes WithAttributes(FileExistence fileExistence = FileExistence.Required, bool undeclaredSourceRewrite = false)
 {
     return(FileArtifactWithAttributes.FromFileArtifact(this, fileExistence, undeclaredSourceRewrite));
 }
예제 #3
0
 /// <summary>
 /// Writes a <see cref="FileArtifactWithAttributes"/>
 /// </summary>
 public void Write(FileArtifactWithAttributes value)
 {
     Start <FileArtifactWithAttributes>();
     value.Serialize(this);
     End();
 }
예제 #4
0
 /// <summary>
 /// Constructs <see cref="FileArtifactWithAttributes"/> based on the current FileAttribute instance
 /// with specified <paramref name="fileExistence"/> attibute.
 /// </summary>
 public FileArtifactWithAttributes WithAttributes(FileExistence fileExistence = FileExistence.Required)
 {
     return(FileArtifactWithAttributes.FromFileArtifact(this, fileExistence));
 }