Exemplo n.º 1
0
        // Token: 0x060004B9 RID: 1209 RVA: 0x0001D8F4 File Offset: 0x0001BAF4
        private void CommonInitialize(fsConfig config)
        {
            fsPropertyAttribute attribute = fsPortableReflection.GetAttribute <fsPropertyAttribute>(this._memberInfo);

            if (attribute != null)
            {
                this.JsonName = attribute.Name;
                this.OverrideConverterType = attribute.Converter;
            }
            if (string.IsNullOrEmpty(this.JsonName))
            {
                this.JsonName = config.GetJsonNameFromMemberName(this.MemberName, this._memberInfo);
            }
        }
Exemplo n.º 2
0
        private void CommonInitialize(fsConfig config)
        {
            fsPropertyAttribute attr = fsPortableReflection.GetAttribute <fsPropertyAttribute>(_memberInfo);

            if (attr != null)
            {
                JsonName = attr.Name;
                OverrideConverterType = attr.Converter;
            }

            if (string.IsNullOrEmpty(JsonName))
            {
                JsonName = config.GetJsonNameFromMemberName(MemberName, _memberInfo);
            }
        }