上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: Mysql和C#数据类型对应表 : MySql C# bigint long bigint unsigned ulong int int int unsigned uint smallint short smallint unsigned ushort guid Guid smalldatetime 阅读全文
posted @ 2021-09-04 11:19 willamyao 阅读(1461) 评论(0) 推荐(0)
摘要: Guid.TryParse(context.HttpContext.Request.Headers["RequestId"], out Guid requestId); 阅读全文
posted @ 2021-08-27 09:17 willamyao 阅读(36) 评论(0) 推荐(0)
摘要: private readonly ILogger<WxPayController> _logger; /// <summary> /// /// </summary> private IServiceProvider Service { get; set; } /// <summary> /// / 阅读全文
posted @ 2021-06-23 11:31 willamyao 阅读(49) 评论(0) 推荐(0)
摘要: 设置好无边框窗口后,对MainGrid Xaml代码进行修改: <Grid x:Name="MainGrid" RenderTransformOrigin="0.5,0.5"> <Grid.RenderTransform> <TransformGroup> <ScaleTransform Scale 阅读全文
posted @ 2021-06-07 14:39 willamyao 阅读(573) 评论(0) 推荐(0)
摘要: for (var i = 0; i < 5; i++) { for (var j = 0; j < 4; j++) { Debug.WriteLine($"{i} {j}"); } } for (var i = 0; i < 4 * 5; i++) { Debug.WriteLine($"{i / 阅读全文
posted @ 2021-06-05 21:09 willamyao 阅读(137) 评论(0) 推荐(0)
摘要: 示例代码: <Window x:Class="WpfApp4.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/win 阅读全文
posted @ 2021-06-04 14:52 willamyao 阅读(198) 评论(0) 推荐(0)
摘要: using System; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Interop; usin 阅读全文
posted @ 2021-06-01 19:33 willamyao 阅读(940) 评论(3) 推荐(1)
摘要: public class FlushMemUtil { public static void StartTimer() { #region 定时整理内存 var flushTimer = new Timer(FlushMemory); flushTimer.Change(TimeSpan.FromS 阅读全文
posted @ 2021-05-20 10:54 willamyao 阅读(40) 评论(0) 推荐(0)
摘要: /// <summary> /// 取得文件夹是否有用户 /// </summary> /// <param name="filePath"></param> /// <param name="userName"></param> /// <returns></returns> internal s 阅读全文
posted @ 2021-05-17 11:17 willamyao 阅读(44) 评论(0) 推荐(0)
摘要: 几种应用依赖属性的场景: 1. 希望可在样式中设置属性。 2. 希望属性支持数据绑定。 3. 希望从元素树中的父元素自动继承属性值。 几种应用附加属性的场景: 1. 希望可在样式中设置属性。 2. 希望属性支持数据绑定。 3. 希望从元素树中的父元素自动继承属性值。 4.希望可以在独立的类中定义该附 阅读全文
posted @ 2021-05-13 12:05 willamyao 阅读(824) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 12 下一页