[NUI] Add license, delete unnecessary code(public)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / Xaml / XamlParseException.cs
index 87ea6c6..5b62047 100755 (executable)
@@ -1,3 +1,20 @@
+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
 using System;
 using System.ComponentModel;
 using System.Diagnostics;
@@ -10,7 +27,7 @@ namespace Tizen.NUI.Xaml
     [EditorBrowsable(EditorBrowsableState.Never)]
     public class XamlParseException : Exception
     {
-        readonly string _unformattedMessage;
+        readonly string unformattedMessage;
 
         static private StringBuilder GetStackInfo()
         {
@@ -37,21 +54,21 @@ namespace Tizen.NUI.Xaml
         [EditorBrowsable(EditorBrowsableState.Never)]
         public XamlParseException(string message) : base(message)
         {
-           _unformattedMessage = message;
+           unformattedMessage = message;
         }
 
         /// <summary> Initializes a new instance with message and inner exception. </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
         public XamlParseException(string message, Exception innerException = null) : base(message, innerException)
         {
-           _unformattedMessage = message;
+           unformattedMessage = message;
         }
 
         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
         [EditorBrowsable(EditorBrowsableState.Never)]
         public XamlParseException(string message, IXmlLineInfo xmlInfo, Exception innerException = null) : base(FormatMessage(message + GetStackInfo(), xmlInfo), innerException)
         {
-            _unformattedMessage = message;
+            unformattedMessage = message;
             XmlInfo = xmlInfo;
         }
 
@@ -61,7 +78,7 @@ namespace Tizen.NUI.Xaml
 
         internal string UnformattedMessage
         {
-            get { return _unformattedMessage ?? Message; }
+            get { return unformattedMessage ?? Message; }
         }
 
         static string FormatMessage(string message, IXmlLineInfo xmlinfo)