主頁 > .NET開發 > C# 索引器的理解和使用

C# 索引器的理解和使用

2020-09-20 06:09:18 .NET開發

概述

此部分內容參考自MSDN檔案

  • 使用索引器可以用類似于陣列的方式為物件建立索引,

  • get 取值函式回傳值, set 取值函式分配值,

  • this 關鍵字用于定義索引器,

  • value 關鍵字用于定義 set 索引器所賦的值,

  • 索引器不必根據整數值進行索引;由你決定如何定義特定的查找機制,

  • 索引器可被多載,

  • 索引器可以有多個形參,例如當訪問二維陣列時,

我對索引器的理解就是,他是一個讀寫自定義類中的資料集合的介面,連接自定義類中的資料集合,并可對其進行讀寫操作

通過該介面簡化或者豐富對自定義類中資料集合的操作方式

索引器實際上相當于一個方法,支持多個及多種型別的引數,不同的是,其回傳值不可為void,并且索引器除可傳入引數外,還可對其進行賦值,即it[0] = "測驗資料0"

創建索引器時,其回傳值型別亦為其value關鍵字所使用的型別,即定義了回傳值型別的同時,也定義了其可接受的值型別

索引器使用要素

創建索引器時有幾部分內容是必須的:

  1. 必須先創建索引器所需要的容器(我把它稱為容器,暫時還沒看到有對它的具體定義)

  2. 創建索引器需要使用this關鍵字

  3. 索引器中必須要包含getset訪問器,在C#7.0可以使用運算式主體(=>)簡化

  4. 在使用運算式主體成員實作索引器時,必須額外提供容器的修改介面,因為通過運算式主體實作的索引器是不包含set關鍵字的

單引數索引器

此索引器使用簡單的string陣列作為容器,此索引器使用int型別的i進行索引,回傳值為string型別,

class SampleIndxer
{
    //可供索引器使用的容器,暫用陣列
    private string[] sampleStrArr = new string[10];
    //創建索引器
    public string this[int i]
    {
        get { return sampleStrArr[i]; }
        set { sampleStrArr[i] = value; }
    }
}
class Test
{
    public static void test()
    {
        //簡單索引器測驗
        SampleIndxer it = new SampleIndxer();
        it[0] = "測驗資料0";
        it[1] = "測驗資料1";
        Console.WriteLine("it[0]:" + it[0]);
        Console.WriteLine("it[1]:" + it[1]);
        Console.ReadLine();
    }

}

索引器中同時也可以使用泛型作為引數

class SampleGenericIndexer<T>
{
    //可供索引器使用的主體變數,暫用泛型陣列代替
    private T[] sampleGenericStrArr = new T[10];
    public T this[int i]
    {
        get { return sampleGenericStrArr[i]; }
        set { sampleGenericStrArr[i] = value; }
    }
}


class Test
{
    public static void test()
    {
        //泛型索引器測驗
        SampleGenericIndexer<string> it = new SampleGenericIndexer<string>();
        it[0] = "測驗資料0";
        it[1] = "測驗資料1";
        Console.WriteLine("it[0]:" + it[0]);
        Console.WriteLine("it[1]:" + it[1]);
        Console.ReadLine();
    }
}

C#7.0之后可以通過運算式主體實作索引器,需要注意的是,通過運算式主體實作索引器時,必須提供資料修改的介面,因為通過運算式主體實作索引時僅提供了get訪問器,并未提供set訪問器,或者將容器的可訪問性設定為使用該類的地方可以訪問,直接對容器進行資料操作,僅使用索引器進行資料的讀取,

class ExpressionBodyIndexer<T>
{
    //可供索引器使用的主體變數,暫用泛型陣列代替
    private T[] expressionBodyStrArr = new T[10];

    //標記當前索引器的中已初始化資料的索引位置
    int nextIndex = 0;
    // 使用運算式主體(ExpressionBody)定義簡化定義索引器
    public T this[int i] => expressionBodyStrArr[i];

    /// <summary>
    /// 運算式主體方式定義的索引器無法通過索引值設定其中的值
    /// 因為此狀態下,索引器的資料為只讀狀態
    /// 必須向外提供賦值的方法
    /// </summary>
    /// <param name="value"></param>
    public void Add(T value)
    {
        if(nextIndex >= expressionBodyStrArr.Length)
        {
            throw new IndexOutOfRangeException($"當前集合資料已滿,共{expressionBodyStrArr.Length}組資料");
        }
        expressionBodyStrArr[nextIndex++] = value;
    }
}
class Test
{
    public static void test()
    {
        //泛型索引器測驗
        ExpressionBodyIndexer<string> it = new ExpressionBodyIndexer<string>();
        //此條件下不可通過it[0]索引方式進行資料添加,因為他是只讀的
        //必須通過提供的Add方法添加資料
        it.Add("測驗資料0");
        it.Add("測驗資料1");
        it.Add("測驗資料2");
        Console.WriteLine("it[0]:" + it[0]);
        Console.WriteLine("it[1]:" + it[1]);
        Console.WriteLine("it[2]:" + it[2]);
        Console.ReadLine();
    }
}

索引器既然是可以簡化或者豐富對自定義類中資料集合的操作方式,那么自然也可以使用稍微復雜點的資料集合作為索引器的容器,本例中使用Dictionary作為容器,

class VariableLengthIndexer
{
    /// <summary>
    /// 可供索引器使用的容器,此處使用Dictionary代替,

    /// 實作使用string型別資料當作索引器的指標,同時實作索引器的可變長度
    /// </summary>
    private Dictionary<string, string> dic = new Dictionary<string, string>();

    /// <summary>
    /// 使用運算式主體創建索引器
    /// </summary>
    /// <param name="s"></param>
    /// <returns></returns>
    public string this[string s] => dic[s];
    
    public void Add(string key,string value)
    {
        if (dic.ContainsKey(key))
        {
            dic[key] = value;
        }
        else
        {
            dic.Add(key, value);
        }
    }
}
class Test
{
    public static void test()
    {
        //泛型索引器測驗
        VariableLengthIndexer it = new VariableLengthIndexer();
        //此條件下不可通過it[0]索引方式進行資料添加,因為他是只讀的
        //必須通過提供的Add方法添加資料
        it.Add("資料0", "測驗資料0");
        it.Add("資料1", "測驗資料1");
        it.Add("資料2", "測驗資料2");
        Console.WriteLine("it[資料1]:" + it["資料1"]);
        Console.WriteLine("it[資料2]:" + it["資料2"]);
        Console.WriteLine("it[資料3]:" + it["資料3"]);
        Console.ReadLine();
    }
}

前面的幾個例子中,僅僅是對于索引器的認識,實際作業中并沒有使用價值,因為所作的操作完全可以使用 .NET 中預定義的資料集合完成,個人覺得C#7.0之后提供的運算式主體實際作用并不大,甚至沒有必要,個人認為索引器最大價值存在于getset訪問器中對于資料操作的自定義處理,可以在訪問器中對資料進行修正或者過濾,這才是其比較好的價值體現,

通過在索引器中對資料處理做封裝,可以簡化平常大部分的操作,此類也可根據實際情況嵌入到資料庫訪問物體類中,

/// <summary>
/// 本實體通過考試成績的處理演示索引器對資料處理的程序
/// </summary>
class TestScore
{
    private Dictionary<string, int> scores = new Dictionary<string, int>();

    public string this[string s]
    {
        get
        {
            if (!scores.ContainsKey(s))
            {
                return $"非常抱歉,{s}的成績尚未錄入";
            }
            switch (scores[s])
            {
                case 10:
                case 20:
                case 30:
                case 40:
                case 50:
                    return $"很遺憾,{s}不及格,分數僅為{scores[s]}";
                case 60:
                case 70:
                    return $"考的不錯,{s}已及格,分數為{scores[s]}";
                case 80:
                case 90:
                    return $"成績優秀,{s}成績優秀,分數為{scores[s]}";
                case 100:
                    return $"非常優秀,{s}獲取滿分{scores[s]}分";
                default:
                    return $"{s}的成績可能存在例外,分數為{scores[s]}";
            }
        }
        set
        {
            if (int.TryParse(value, out int v))
            {
                //對分數做四舍五入處理
                v = (int)Math.Round(v * 0.1) * 10;

                if (!scores.ContainsKey(s))
                {
                    scores.Add(s, v);
                }
                else
                {
                    scores[s] = v;
                }
            }
        }
    }
}

class Test
{
    public static void test()
    {
        TestScore ts = new TestScore();
        ts["張三"] = "23";
        ts["李四"] = "54";
        ts["王二"] = "66";
        ts["麻子"] = "89";
        ts["王朝"] = "100";
        ts["馬漢"] = "5";
        ts["老王"] = "";

        Console.WriteLine(ts["張三"]);
        Console.WriteLine(ts["李四"]);
        Console.WriteLine(ts["王二"]);
        Console.WriteLine(ts["麻子"]);
        Console.WriteLine(ts["王朝"]);
        Console.WriteLine(ts["馬漢"]);
        Console.WriteLine(ts["老王"]);
        Console.ReadLine();

    }
}

多引數索引器

前面通過單引數所以其的實作分析了索引器的使用方式即可能的使用范圍,下面進行下簡單的拓展,分析多引數索引器的使用方式,依舊使用上面分數的例子做演示,

struct Student
{
    public string Name;
    public string Classes;
    public string Grade;
    public int Score;
        
    public override string ToString()
    {
        return $"{this.Grade}\t{this.Classes}\t{this.Name}\t{this.Score}";
    }
}

public class ArrayList1 : ArrayList
{
    public override bool Contains(object item)
    {
        if (item.GetType().ToString() == "Student")
        {
            foreach (var a in this)
            {
                if (a.GetType().ToString() == "Student")
                {
                    var s1 = (Student)a;
                    var s2 = (Student)item;
                    if (s1.Name == s2.Name && s1.Classes == s2.Classes && s1.Grade == s2.Grade)
                    {
                        return true;
                    }
                    return false;
                }
            }
        }
        return base.Contains(item);
    }
}

class TestScore
{
    public ArrayList1 ArrList = new ArrayList1();

    public string this[string name, string grade, string classes]
    {
        get
        {
            string rtn = "";
            foreach (Student a in ArrList)
            {
                if (a.Name == name && a.Classes == classes && a.Grade == grade)
                {
                    switch (a.Score)
                    {
                        case 10:
                        case 20:
                        case 30:
                        case 40:
                        case 50:
                            rtn = $"很遺憾,{name}不及格,分數僅為{a.Score}";
                            break;
                        case 60:
                        case 70:
                            rtn = $"考的不錯,{name}已及格,分數為{a.Score}";
                            break;
                        case 80:
                        case 90:
                            rtn = $"成績優秀,{name}成績優秀,分數為{a.Score}";
                            break;
                        case 100:
                            rtn = $"非常優秀,{name}獲取滿分{a.Score}分";
                            break;
                        default:
                            rtn = $"{name}的成績可能存在例外,分數為{a.Score}";
                            break;
                    }
                }
            }
            if (rtn == "")
            {
                return $"非常抱歉,{name}的成績尚未錄入";
            }
            return rtn;
        }
        set
        {
            if (int.TryParse(value, out int v))
            {
                //對分數做四舍五入處理
                v = (int)Math.Round(v * 0.1) * 10;

                Student st = new Student
                {
                    Name = name,
                    Grade = grade,
                    Classes = classes,
                    Score = v
                };
                //重復項,不再插入,避免查找時出現重復
                if (!ArrList.Contains(st))
                {
                    ArrList.Add(st);
                }
            }
        }
    }
}

class Test
{
    public static void test()
    {
        TestScore ts = new TestScore();
        ts["張三", "三年級", "二班"] = "23";
        ts["李四", "三年級", "二班"] = "54";
        ts["王二", "三年級", "二班"] = "66";
        ts["麻子", "三年級", "二班"] = "89";
        ts["王朝", "三年級", "二班"] = "100";
        ts["馬漢", "三年級", "二班"] = "5";
        ts["老王", "三年級", "二班"] = "";
        Console.WriteLine("查看存入的資料:");
        Console.WriteLine($"共存入了:{ts.ArrList.Count}組資料");
        Console.WriteLine();
        //不使用索引器,直接訪問實體中的容器

        foreach (Student s in ts.ArrList)
        {
            Console.WriteLine(s.ToString());
        }
        Console.WriteLine();

        Console.WriteLine(ts["張三", "三年級", "二班"]);
        Console.WriteLine(ts["李四", "三年級", "二班"]);
        Console.WriteLine(ts["王二", "三年級", "二班"]);
        Console.WriteLine(ts["麻子", "三年級", "二班"]);
        Console.WriteLine(ts["王朝", "三年級", "二班"]);
        Console.WriteLine(ts["馬漢", "三年級", "二班"]);
        Console.WriteLine(ts["老王", "三年級", "二班"]);
        Console.ReadLine();

    }
}

同時二維陣列中多個引數的實作方式,同樣也支持二維陣列

public string[,] sampleStrArr = new string[10,10];
public string this[int x,int y]
{
    get { return sampleStrArr[x, y]; }
    set { sampleStrArr[x, y] = value; }
}

public static void test()
{
    SampleIndxer it = new SampleIndxer();
    it[0, 0] = "測驗資料0,0";
    it[0, 1] = "測驗資料0,1";
    it[1, 1] = "測驗資料1,1";
    it[1, 2] = "測驗資料1,2";
    it[3, 3] = "測驗資料3,3";

    Console.WriteLine("it[0,0]:" + it[0, 0]);
    Console.WriteLine("it[0,1]:" + it[0, 1]);
    Console.WriteLine("it[1,1]:" + it[1, 1]);
    Console.WriteLine("it[1,2]:" + it[1, 2]);
    Console.WriteLine("it[3,3]:" + it[3, 3]);

    Console.ReadLine();
}

索引器的多載

前面說過,索引器相當于一個方法,他們同樣都支持多載,與方法不同的是,索引器沒有獨立的名稱,只能通過回傳值的不同和引數的不同來區分不同的簽名,從而實作多載,

class VariableLengthIndexer
{
    private Dictionary<string, int> dic = new Dictionary<string, int>();

    //通過Key,查找Value
    public int this[string s]
    {
        get { return dic[s]; }
    }
    //通過Value查找Key
    public string this[int num]
    {
        get { return dic.Where(x => x.Value =https://www.cnblogs.com/Hope-forever/p/= num).Last().Key; }
    }
    //通過Value查找Key,添加無效引數num1演示多載
    public string this[int num, int num1]
    {
        get { return dic.Where(x => x.Value == num).Last().Key; }
    }

    public void Add(string key, int value)
    {
        if (dic.ContainsKey(key))
        {
            dic[key] = value;
        }
        else
        {
            dic.Add(key, value);
        }
    }
}
class Test
{
    public static void test()
    {
        //泛型索引器測驗
        VariableLengthIndexer it = new VariableLengthIndexer();
        it.Add("測驗資料1", 1);
        it.Add("測驗資料2", 2);
        it.Add("測驗資料3", 3);
        it.Add("測驗資料4", 4);
        //通過Key查找Value
        Console.WriteLine("通過Key查找Value");
        Console.WriteLine("Key:測驗資料1,Value:" + it["測驗資料1"]);
        Console.WriteLine("Key:測驗資料2,Value:" + it["測驗資料2"]);
        Console.WriteLine("Key:測驗資料3,Value:" + it["測驗資料3"]);
        Console.WriteLine("Key:測驗資料4,Value:" + it["測驗資料4"]);
        //通過Value查找Key
        Console.WriteLine("通過Value查找Key");
        Console.WriteLine("Value:1,Key:" + it[1]);
        Console.WriteLine("Value:2,Key:" + it[2]);
        Console.WriteLine("Value:3,Key:" + it[3]);
        Console.WriteLine("Value:4,Key:" + it[4]);
        //通過Value查找Key,并添加無效引數傳入
        Console.WriteLine("通過Value查找Key,并添加無效引數傳入");
        Console.WriteLine("Value:1,Key:" + it[1, 1]);
        Console.WriteLine("Value:2,Key:" + it[2, 2]);
        Console.WriteLine("Value:3,Key:" + it[3, 3]);
        Console.WriteLine("Value:4,Key:" + it[4, 4]);

        Console.ReadLine();
    }
}

參考文獻:

1 C# 中常用的索引器 https://www.cnblogs.com/daimajun/p/6819081.html

2 索引器(C# 編程指南)https://docs.microsoft.com/zh-cn/dotnet/csharp/programming-guide/indexers/

轉載請註明出處,本文鏈接:https://www.uj5u.com/net/86488.html

標籤:C#

上一篇:C# LINQ學習筆記五:LINQ to XML

下一篇:[轉]三分鐘學會.NET Core Jwt 策略授權認證

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • WebAPI簡介

    Web體系結構: 有三個核心:資源(resource),URL(統一資源識別符號)和表示 他們的關系是這樣的:一個資源由一個URL進行標識,HTTP客戶端使用URL定位資源,表示是從資源回傳資料,媒體型別是資源回傳的資料格式。 接下來我們說下HTTP. HTTP協議的系統是一種無狀態的方式,使用請求/ ......

    uj5u.com 2020-09-09 22:07:47 more
  • asp.net core 3.1 入口:Program.cs中的Main函式

    本文分析Program.cs 中Main()函式中代碼的運行順序分析asp.net core程式的啟動,重點不是剖析原始碼,而是理清程式開始時執行的順序。到呼叫了哪些實體,哪些法方。asp.net core 3.1 的程式入口在專案Program.cs檔案里,如下。ususing System; us ......

    uj5u.com 2020-09-09 22:07:49 more
  • asp.net網站作為websocket服務端的應用該如何寫

    最近被websocket的一個問題困擾了很久,有一個需求是在web網站中搭建websocket服務。客戶端通過網頁與服務器建立連接,然后服務器根據ip給客戶端網頁發送資訊。 其實,這個需求并不難,只是剛開始對websocket的內容不太了解。上網搜索了一下,有通過asp.net core 實作的、有 ......

    uj5u.com 2020-09-09 22:08:02 more
  • ASP.NET 開源匯入匯出庫Magicodes.IE Docker中使用

    Magicodes.IE在Docker中使用 更新歷史 2019.02.13 【Nuget】版本更新到2.0.2 【匯入】修復單列匯入的Bug,單元測驗“OneColumnImporter_Test”。問題見(https://github.com/dotnetcore/Magicodes.IE/is ......

    uj5u.com 2020-09-09 22:08:05 more
  • 在webform中使用ajax

    如果你用過Asp.net webform, 說明你也算是.NET 開發的老兵了。WEBform應該是2011 2013左右,當時還用visual studio 2005、 visual studio 2008。后來基本都用的是MVC。 如果是新開發的專案,估計沒人會用webform技術。但是有些舊版 ......

    uj5u.com 2020-09-09 22:08:50 more
  • iis添加asp.net網站,訪問提示:由于擴展配置問題而無法提供您請求的

    今天在iis服務器配置asp.net網站,遇到一個問題,記錄一下: 問題:由于擴展配置問題而無法提供您請求的頁面。如果該頁面是腳本,請添加處理程式。如果應下載檔案,請添加 MIME 映射。 WindowServer2012服務器,添加角色安裝完.netframework和iis之后,運行aspx頁面 ......

    uj5u.com 2020-09-09 22:10:00 more
  • WebAPI-處理架構

    帶著問題去思考,大家好! 問題1:HTTP請求和回傳相應的HTTP回應資訊之間發生了什么? 1:首先是最底層,托管層,位于WebAPI和底層HTTP堆疊之間 2:其次是 訊息處理程式管道層,這里比如日志和快取。OWIN的參考是將訊息處理程式管道的一些功能下移到堆疊下端的OWIN中間件了。 3:控制器處理 ......

    uj5u.com 2020-09-09 22:11:13 more
  • 微信門戶開發框架-使用指導說明書

    微信門戶應用管理系統,采用基于 MVC + Bootstrap + Ajax + Enterprise Library的技術路線,界面層采用Boostrap + Metronic組合的前端框架,資料訪問層支持Oracle、SQLServer、MySQL、PostgreSQL等資料庫。框架以MVC5,... ......

    uj5u.com 2020-09-09 22:15:18 more
  • WebAPI-HTTP編程模型

    帶著問題去思考,大家好!它是什么?它包含什么?它能干什么? 訊息 HTTP編程模型的核心就是訊息抽象,表示為:HttPRequestMessage,HttpResponseMessage.用于客戶端和服務端之間交換請求和回應訊息。 HttpMethod類包含了一組靜態屬性: private stat ......

    uj5u.com 2020-09-09 22:15:23 more
  • 部署WebApi隨筆

    一、跨域 NuGet參考Microsoft.AspNet.WebApi.Cors WebApiConfig.cs中配置: // Web API 配置和服務 config.EnableCors(new EnableCorsAttribute("*", "*", "*")); 二、清除默認回傳XML格式 ......

    uj5u.com 2020-09-09 22:15:48 more
最新发布
  • C#多執行緒學習(二) 如何操縱一個執行緒

    <a href="https://www.cnblogs.com/x-zhi/" target="_blank"><img width="48" height="48" class="pfs" src="https://pic.cnblogs.com/face/2943582/20220801082530.png" alt="" /></...

    uj5u.com 2023-04-19 09:17:20 more
  • C#多執行緒學習(二) 如何操縱一個執行緒

    C#多執行緒學習(二) 如何操縱一個執行緒 執行緒學習第一篇:C#多執行緒學習(一) 多執行緒的相關概念 下面我們就動手來創建一個執行緒,使用Thread類創建執行緒時,只需提供執行緒入口即可。(執行緒入口使程式知道該讓這個執行緒干什么事) 在C#中,執行緒入口是通過ThreadStart代理(delegate)來提供的 ......

    uj5u.com 2023-04-19 09:16:49 more
  • 記一次 .NET某醫療器械清洗系統 卡死分析

    <a href="https://www.cnblogs.com/huangxincheng/" target="_blank"><img width="48" height="48" class="pfs" src="https://pic.cnblogs.com/face/214741/20200614104537.png" alt="" /&g...

    uj5u.com 2023-04-18 08:39:04 more
  • 記一次 .NET某醫療器械清洗系統 卡死分析

    一:背景 1. 講故事 前段時間協助訓練營里的一位朋友分析了一個程式卡死的問題,回過頭來看這個案例比較經典,這篇稍微整理一下供后來者少踩坑吧。 二:WinDbg 分析 1. 為什么會卡死 因為是表單程式,理所當然就是看主執行緒此時正在做什么? 可以用 ~0s ; k 看一下便知。 0:000> k # ......

    uj5u.com 2023-04-18 08:33:10 more
  • SignalR, No Connection with that ID,IIS

    <a href="https://www.cnblogs.com/smartstar/" target="_blank"><img width="48" height="48" class="pfs" src="https://pic.cnblogs.com/face/u36196.jpg" alt="" /></a>...

    uj5u.com 2023-03-30 17:21:52 more
  • 一次對pool的誤用導致的.net頻繁gc的診斷分析

    <a href="https://www.cnblogs.com/dotnet-diagnostic/" target="_blank"><img width="48" height="48" class="pfs" src="https://pic.cnblogs.com/face/3115652/20230225090434.png" alt=""...

    uj5u.com 2023-03-28 10:15:33 more
  • 一次對pool的誤用導致的.net頻繁gc的診斷分析

    <a href="https://www.cnblogs.com/dotnet-diagnostic/" target="_blank"><img width="48" height="48" class="pfs" src="https://pic.cnblogs.com/face/3115652/20230225090434.png" alt=""...

    uj5u.com 2023-03-28 10:13:31 more
  • C#遍歷指定檔案夾中所有檔案的3種方法

    <a href="https://www.cnblogs.com/xbhp/" target="_blank"><img width="48" height="48" class="pfs" src="https://pic.cnblogs.com/face/957602/20230310105611.png" alt="" /></a&...

    uj5u.com 2023-03-27 14:46:55 more
  • C#/VB.NET:如何將PDF轉為PDF/A

    <a href="https://www.cnblogs.com/Carina-baby/" target="_blank"><img width="48" height="48" class="pfs" src="https://pic.cnblogs.com/face/2859233/20220427162558.png" alt="" />...

    uj5u.com 2023-03-27 14:46:35 more
  • 武裝你的WEBAPI-OData聚合查詢

    <a href="https://www.cnblogs.com/podolski/" target="_blank"><img width="48" height="48" class="pfs" src="https://pic.cnblogs.com/face/616093/20140323000327.png" alt="" /><...

    uj5u.com 2023-03-27 14:46:16 more