c#

34 items tagged with "c#"

34 Articles

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.

2022-08-09
Code Snippets & Tips

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.

2022-08-09
Code Snippets & Tips

C# 11 New Feature - Raw String Literals

2022-04-22
C# Programming

Load Fonts as Glyph in .NET

2022-03-26
.NET Programming

C# - Get Current and Last Month Start and End Date

2022-01-15
Code Snippets & Tips

Apache Ignite Installation on Windows

2022-01-03
The Data Engineering

C#: Get Index value in foreach Loop of IEnumerable

2021-12-28
Code Snippets & Tips

Query JSON via JMESPath in .NET

2021-12-21
.NET Programming

.NET - Transform XML Data with XSLT

2021-09-11
.NET Programming

Read Environment Variables in .NET Azure Functions

2021-08-24
Code Snippets & Tips

Create Blob Triggered Azure Functions using .NET 5

2021-08-24
Microsoft Azure

C#: Base64 URL Encoder and Decoder

2021-08-24
Code Snippets & Tips

C# 10.0 New Features

2021-08-14
C# Programming

Read Embedded Assembly Resource Files in .NET

2021-08-13
.NET Programming

Draw Images in ASP.NET Core 5

2021-02-16
ASP.NET Core

Get IP Address in ASP.NET Core 5

2021-01-16
ASP.NET Core

.NET Standard for C# 9.0

2020-09-28
.NET Programming

C# 9.0 New Features

2020-09-24
C# Programming

Introduction to C# Interactive

2020-09-24
C# Programming

Get IP Address in ASP.NET Core 3.x

2020-09-24
ASP.NET Core

C# Regex - Remove Heading Tags

2020-09-22
Code Snippets & Tips

LINQ to SQL - Select N Random Records

2020-09-22
.NET Programming

Send Emails using Microsoft 365 in ASP.NET Core

2020-09-11
ASP.NET Core

Entity Framework Core Code-First - Generate Covering Index with Columns Included

2020-06-28
ASP.NET Core

Machine Learning with .NET in Jupyter Notebooks

2020-01-02
.NET Programming

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.

2019-11-18
Code Snippets & Tips

Tuples in C# (4.x, 7.0, 7.1)

2018-02-25
C# Programming

C# version history and core features

2018-02-17
C# Programming

[C#] Connect to Teradata Database via .NET Data Provider

2015-05-28
Teradata

C/C++与C#不同点对比分析总结

本文阐述C/C++与C#的不同点,从数据结构与类型,关键字,语法结构,面向对象等角度出发,不涵盖所有不同点。

2011-12-14
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》英文版第六版,相关表述参照了其中的内容,并且以我自己的理解和语言进行描述,不准确的地方请见谅。

2010-05-28
C和C++

[.NET] C#连接Oracle数据库方法

2009-12-02
.NET Programming

[C#] ASP.NET 上传图片添加半透明图片或者文字水印的方法(二)

在上一篇文章中讲到了关于C#上传图片添加文字水印的方法,这个章节中则是添加半透明的图片水印的方法。下面是ImageWatermarkPainter类的实现.

2009-03-11
.NET Programming

[C#] ASP.NET 上传图片添加半透明图片或者文字水印的方法(一)

主要用到System.Drawing 命名空间下的相关类,如Brush、Image、Bitmap、Graphics等等类Image类可以从图片文件创建Image的实例,Bitmap可以从文件也可以从已有的Image对象创建实例,而Graphics类则是封装了对图像的相关操作,可以理解为一个绘图的面板,在这个面板里你可以添加文字,添加背景等等很多常规绘图软件具备的功能。

2009-03-11
.NET Programming