From ff295f51bdbdaf941a053279ed7bd7f470f5529f Mon Sep 17 00:00:00 2001 From: Swaroop Sridhar Date: Tue, 18 Jun 2019 12:43:16 -0700 Subject: [PATCH] Expose only getters for Exception fields. --- .../Microsoft.NET.HostModel/AppHost/AppNameTooLongException.cs | 3 ++- .../AppHost/AppUpdatePlaceHolderNotFoundException.cs | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/managed/Microsoft.NET.HostModel/AppHost/AppNameTooLongException.cs b/src/managed/Microsoft.NET.HostModel/AppHost/AppNameTooLongException.cs index cde719e960..069b7f5718 100644 --- a/src/managed/Microsoft.NET.HostModel/AppHost/AppNameTooLongException.cs +++ b/src/managed/Microsoft.NET.HostModel/AppHost/AppNameTooLongException.cs @@ -11,11 +11,12 @@ namespace Microsoft.NET.HostModel.AppHost /// public class AppNameTooLongException : AppHostUpdateException { - public string LongName; + public string LongName { get; } public AppNameTooLongException(string name) { LongName = name; } + } } diff --git a/src/managed/Microsoft.NET.HostModel/AppHost/AppUpdatePlaceHolderNotFoundException.cs b/src/managed/Microsoft.NET.HostModel/AppHost/AppUpdatePlaceHolderNotFoundException.cs index a497c2d673..895728bbd8 100644 --- a/src/managed/Microsoft.NET.HostModel/AppHost/AppUpdatePlaceHolderNotFoundException.cs +++ b/src/managed/Microsoft.NET.HostModel/AppHost/AppUpdatePlaceHolderNotFoundException.cs @@ -12,8 +12,7 @@ namespace Microsoft.NET.HostModel.AppHost /// public class AppUpdatePlaceHolderNotFoundException : AppHostUpdateException { - public byte[] MissingPattern; - + public byte[] MissingPattern { get; } public AppUpdatePlaceHolderNotFoundException(byte[] pattern) { MissingPattern = pattern;