Update listing 18.11 (merge files and minor changes)
MODIFY
src/Chapter18/Listing18.11.SpecifyingAReturnAttribute.cs
src/Chapter18/Listing18.11.SpecifyingAReturnAttribute.cs
+using System;
+
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter18.Listing18_11
{
public class Program
{
[return: Description(
"Returns true if the object is in a valid state.")]
- public bool IsValid()
+ public static bool IsValid()
{
// ...
return true;
}
}
+
+ public class DescriptionAttribute : Attribute
+ {
+ // TODO: Update listing in Manuscript
+ private readonly string _Description;
+ public string Description { get { return _Description; } }
+
+ public DescriptionAttribute(string description)
+ {
+ this._Description = description;
+ }
+ }
}
\ No newline at end of file

RENAME
src/Chapter18/Listing18.12.csprojMockFileForResequencingListings.cs
src/Chapter18/Listing18.12.csprojMockFileForResequencingListings.Placeholder.cs
Update listing 18.11 (merge files and minor changes)