From a4cf5c0e1694d5fd281137fe37ab274a6839bf59 Mon Sep 17 00:00:00 2001 From: Phillip Graham Date: Mon, 9 Apr 2018 13:57:51 -0400 Subject: [PATCH 1/2] Update PostalCode.cs to expose PostalCodeFormat --- src/PostalCodes/PostalCode.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/PostalCodes/PostalCode.cs b/src/PostalCodes/PostalCode.cs index a612d88..547413b 100644 --- a/src/PostalCodes/PostalCode.cs +++ b/src/PostalCodes/PostalCode.cs @@ -71,6 +71,15 @@ protected internal string HighestExpandedPostalCodeString /// The current format. /// protected PostalCodeFormat _currentFormat = null; + + /// + /// Gets the PostalCodeFormat. + /// + /// The PostalCodeFormat. + public PostalCodeFormat currentFormat + { + get { return _currentFormat; } + } /// /// The type of the current format. From d000c63d1fa4e1cc7851e19da8039ca3b01e410e Mon Sep 17 00:00:00 2001 From: Phillip Graham Date: Mon, 9 Apr 2018 14:02:38 -0400 Subject: [PATCH 2/2] Name change for PostalCodeFormat getter function --- src/PostalCodes/PostalCode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PostalCodes/PostalCode.cs b/src/PostalCodes/PostalCode.cs index 547413b..d09a751 100644 --- a/src/PostalCodes/PostalCode.cs +++ b/src/PostalCodes/PostalCode.cs @@ -76,7 +76,7 @@ protected internal string HighestExpandedPostalCodeString /// Gets the PostalCodeFormat. /// /// The PostalCodeFormat. - public PostalCodeFormat currentFormat + public PostalCodeFormat PostalCodeFormat { get { return _currentFormat; } }