c#
34 items tagged with "c#"
Articles
Clean out All Style Attributes using HTML Agility Pack .NET
HTML Agility Pack (HAP) is one of the most commonly used .NET package to parse HTML. It creates a document object model in memory, which can be use to manipulate the nodes (including both elements and attributes). The package can be added to your project from NuGet via the following CLI: `` dotnet add package HtmlAgilityPack --version 1.11.43 ` This code snippet provides one example of using this HAP to remove all style `attributes. The script can be run as C# script. For more details, refer to Html Agility Pack.
HTML Parsing using HTML Agility Pack .NET
HTML Agility Pack (HAP) is one of the most commonly used .NET package to parse HTML. It creates a document object model in memory, which can be use to manipulate the nodes (including both elements and attributes). The package can be added to your project from NuGet via the following CLI: `` dotnet add package HtmlAgilityPack --version 1.11.43 ` This code snippet provides one example of using this HAP to remove all script `elements. The script can be run as C# script. For more details, refer to Html Agility Pack.
C# 11 New Feature - Raw String Literals
Load Fonts as Glyph in .NET
C# - Get Current and Last Month Start and End Date
Apache Ignite Installation on Windows
C#: Get Index value in foreach Loop of IEnumerable
Query JSON via JMESPath in .NET
.NET - Transform XML Data with XSLT
Read Environment Variables in .NET Azure Functions
Create Blob Triggered Azure Functions using .NET 5
C#: Base64 URL Encoder and Decoder
C# 10.0 New Features
Read Embedded Assembly Resource Files in .NET
Draw Images in ASP.NET Core 5
Get IP Address in ASP.NET Core 5
.NET Standard for C# 9.0
C# 9.0 New Features
Introduction to C# Interactive
Get IP Address in ASP.NET Core 3.x
C# Regex - Remove Heading Tags
LINQ to SQL - Select N Random Records
Send Emails using Microsoft 365 in ASP.NET Core
Entity Framework Core Code-First - Generate Covering Index with Columns Included
Machine Learning with .NET in Jupyter Notebooks
Read and parse JSON in C# / .NET Framework
JSON is commonly used in modern applications for data storage and transfers. Pretty much all programming languages provide APIs to parse JSON.
Tuples in C# (4.x, 7.0, 7.1)
C# version history and core features
[C#] Connect to Teradata Database via .NET Data Provider
C/C++与C#不同点对比分析总结
本文阐述C/C++与C#的不同点,从数据结构与类型,关键字,语法结构,面向对象等角度出发,不涵盖所有不同点。
非托管C++ (Unmanaged C++) Tips (Versus C#)
这几天正在学习C++( 非托管,无特别说明以下的C++均指非托管的C++,而非CLR C++ ),为了快速的学习和加深印象,我对照VB、C#来学习,通过对比他们的相同与不同处达到融会贯通的目的,以下是一些总结或者注意点,希望对其他C++(尤其是之前学习C#)的新手提供一些参考。我目前的学习资料是《Sams Teach Yourself C++ in One Hour a Day》英文版第六版,相关表述参照了其中的内容,并且以我自己的理解和语言进行描述,不准确的地方请见谅。
[.NET] C#连接Oracle数据库方法
[C#] ASP.NET 上传图片添加半透明图片或者文字水印的方法(二)
在上一篇文章中讲到了关于C#上传图片添加文字水印的方法,这个章节中则是添加半透明的图片水印的方法。下面是ImageWatermarkPainter类的实现.
[C#] ASP.NET 上传图片添加半透明图片或者文字水印的方法(一)
主要用到System.Drawing 命名空间下的相关类,如Brush、Image、Bitmap、Graphics等等类Image类可以从图片文件创建Image的实例,Bitmap可以从文件也可以从已有的Image对象创建实例,而Graphics类则是封装了对图像的相关操作,可以理解为一个绘图的面板,在这个面板里你可以添加文字,添加背景等等很多常规绘图软件具备的功能。