如何使用嵌套对象并使用分隔键将其展平? 换句话说,有没有类似于“flat”https://www.npmjs.com/package/flat的C#库?
示例:
{ o2p1: 'o2p1_Value',
'o2p2.o1p1': 'o1p1_Value',
'o2p2.o1p2': 'o1p2_Value' }
这里obj3:
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.TabLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary" <-------- check the value of this
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:tabIndicatorColor="@android:color/white"
app:tabGravity="fill"
app:tabMode="fixed" />