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

            End();
            return(value);
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Writes a <see cref="FileArtifactWithAttributes"/>
 /// </summary>
 public void Write(FileArtifactWithAttributes value)
 {
     Start <FileArtifactWithAttributes>();
     value.Serialize(this);
     End();
 }
Ejemplo n.º 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));
 }