---
title: "shiney (@eddychu) | Hashnode"
description: "shiney (@eddychu) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@eddychu"
---

@eddychu

# shiney

@eddychu · Joined November 2023

### [c# 时间日期转换](https://docs.inorah.xyz/csharpdatetimeconvert?utm_source=hashnode&utm_medium=feed)

引言 日常开发中，经常会遇到字符串和DateTime类型转换、不同时区之间的日期转换。这里讲解下 转换UTC TimeZoneInfo.ConvertTimeToUtc(DateTime dateTime, TimeZoneInfo sourceTimeZone) 显式指定时区，转换utc var zone = TimeZoneInfo.FindSystemTimeZoneById("China Standard Time"); var date = Convert.ToDateTime("19...

1 min read · [docs.inorah.xyz](https://docs.inorah.xyz/csharpdatetimeconvert?utm_source=hashnode&utm_medium=feed)

[Feb 20, 2024](https://hashnode.com/posts/csharpdatetimeconvert/65d445476fb6a8ab15420a4f)

### [Await异步](https://docs.inorah.xyz/await?utm_source=hashnode&utm_medium=feed)

如何实现自己的Awaiter 推荐直接看这篇blog：await anything 是否需要为同步方法实现异步？ 这里也附上经典blog：Should I expose asynchronous wrappers for synchronous methods?

1 min read · [docs.inorah.xyz](https://docs.inorah.xyz/await?utm_source=hashnode&utm_medium=feed)

[Jan 23, 2024](https://hashnode.com/posts/await/65af8894ed5edeb04be7a138)

### [postgresql查看数据库物理大小](https://docs.inorah.xyz/postgresql?utm_source=hashnode&utm_medium=feed)

1.查看数据库总大小 select pg\_size\_pretty(pg\_database\_size('incidentdispatch')); 2.查看数据库oid SELECT oid from pg\_database where datname='incidentdispatch'; 3.查看指定模式下每个表的大小 SELECT table\_name, pg\_size\_pretty(total\_bytes) AS total\_size FROM ( SELECT...

1 min read · [docs.inorah.xyz](https://docs.inorah.xyz/postgresql?utm_source=hashnode&utm_medium=feed)

[Jan 23, 2024](https://hashnode.com/posts/postgresql/65af5d5e2f945650e2eb5fe3)

### [.NET 8 中的 ConfigureAwaitOptions](https://docs.inorah.xyz/net-8-configureawaitoptions?utm_source=hashnode&utm_medium=feed)

Intro 在 .NET 中我们可以针对 Task 的操作来设置 ConfigureAwait(false) 来避免异步操作完成后回到原始的同步上下文，.NET 8 中引入了一个 ConfigureAwaitOptions 新类型进一步扩展了 ConfigureAwait 的用法。 Definition 官方定义： namespace System.Threading.Tasks { /// <summary>Options to control behavior when awaiting...

3 min read · [docs.inorah.xyz](https://docs.inorah.xyz/net-8-configureawaitoptions?utm_source=hashnode&utm_medium=feed)

[Jan 22, 2024](https://hashnode.com/posts/net-8-configureawaitoptions/65ae46b649665f751bdbb903)

### [Newtonsoft.Json高级用法](https://docs.inorah.xyz/newtonsoftjson?utm_source=hashnode&utm_medium=feed)

忽略某些属性 默认值的处理 空值的处理 支持非公共成员 日期处理 自定义序列化的字段名称 动态决定属性是否序列化 枚举值的自定义格式化问题 自定义类型转换 全局序列化设置 1. 忽略某些属性 我们在序列化的过程中，并不是所有属性都需要序列化的，如果实体中有些属性不需要序列化，可以使用该特性。 首先介绍Json.Net序列化的模式：OptOut和OptIn 模式说明 OptOut默认值，类中所有公有成员会被序列化，如果不想被序列化，可以用特性JsonIgnore...

4 min read · [docs.inorah.xyz](https://docs.inorah.xyz/newtonsoftjson?utm_source=hashnode&utm_medium=feed)

[Jan 22, 2024](https://hashnode.com/posts/newtonsoftjson/65ae09ca9b78f093d31b3f79)
