Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions mcs/tools/mdoc/Mono.Documentation/monodocer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1893,6 +1893,8 @@ private static bool UpdateAssemblyVersions(XmlElement root, string[] assemblyVer
"System.Runtime.CompilerServices.ExtensionAttribute",
// Used to differentiate 'object' from C#4 'dynamic'
"System.Runtime.CompilerServices.DynamicAttribute",
// Used in code contracts' object invariants (should not be accessed directly)
"System.Diagnostics.Contracts.ContractInvariantMethodAttribute",
};

private void MakeAttributes (XmlElement root, IEnumerable<string> attributes)
Expand Down Expand Up @@ -4532,16 +4534,16 @@ protected override string GetPropertyDeclaration (PropertyDefinition property)
}

buf.Append (" {");
if (set_visible != null) {
if (set_visible != visibility)
buf.Append (' ').Append (set_visible);
buf.Append (" set;");
}
if (get_visible != null) {
if (get_visible != visibility)
buf.Append (' ').Append (get_visible);
buf.Append (" get;");
}
if (set_visible != null) {
if (set_visible != visibility)
buf.Append (' ').Append (set_visible);
buf.Append (" set;");
}
buf.Append (" }");

return buf [0] != ' ' ? buf.ToString () : buf.ToString (1, buf.Length-1);
Expand Down