# LunZi **Repository Path**: catzhou/lun-zi ## Basic Information - **Project Name**: LunZi - **Description**: Maui的一些轮子,只支持windows和安卓 - **Primary Language**: C# - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-08 - **Last Updated**: 2026-03-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Maui的轮子 #### 介绍 1. 本地化 1. MB ``` Task ShowAsync(string message, int delaySeconds = 15); Task ExceptionAsync(Exception e); Task ConfirmAsync(object message, int delaySeconds = 15); ``` 1. FireService ``` void FireAndForgetSafe(Func operation, Action? onFinish = null); Task FireSafeAsync(Func operation) ``` 1. LogSqlite ``` xmlns:log="clr-namespace:LunZi.Pages;assembly=LunZi" ... ``` 1. Preferences键值对存储 改成了 KVStorage ``` void Write(this T obj); void Write(string Key, T t); T? Read(this T? t) T? Read() T? Read(string key) ``` 1. LinqExtensions ``` IEnumerable OrderByEx(this IEnumerable enumberable, string propertyName); IEnumerable OrderByDescendingEx(this IEnumerable enumberable, string propertyName); ``` #### 使用说明 ``` ... builder.AddLunZiService(); var app = builder.Build(); app.InitializeLunZi(); return app; ```