+/*
+ * 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.Collections;
using System.Runtime.CompilerServices;
{
static readonly ConditionalWeakTable<IEnumerable, CollectionSynchronizationContext> SynchronizedCollections = new ConditionalWeakTable<IEnumerable, CollectionSynchronizationContext>();
- BindingMode _mode = BindingMode.Default;
- string _stringFormat;
- object _targetNullValue;
- object _fallbackValue;
+ BindingMode mode = BindingMode.Default;
+ string stringFormat;
+ object targetNullValue;
+ object fallbackValue;
internal BindingBase()
{
[EditorBrowsable(EditorBrowsableState.Never)]
public BindingMode Mode
{
- get { return _mode; }
+ get { return mode; }
set
{
if (value != BindingMode.Default
ThrowIfApplied();
- _mode = value;
+ mode = value;
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
public string StringFormat
{
- get { return _stringFormat; }
+ get { return stringFormat; }
set
{
ThrowIfApplied();
- _stringFormat = value;
+ stringFormat = value;
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
public object TargetNullValue
{
- get { return _targetNullValue; }
+ get { return targetNullValue; }
set
{
ThrowIfApplied();
- _targetNullValue = value;
+ targetNullValue = value;
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
public object FallbackValue
{
- get => _fallbackValue;
+ get => fallbackValue;
set
{
ThrowIfApplied();
- _fallbackValue = value;
+ fallbackValue = value;
}
}