首页
学习
活动
专区
工具
TVP
发布

liulun

专栏成员
348
文章
359113
阅读量
47
订阅数
30分钟LINQ教程
      也就是说,在声明一个变量(并且同时给它赋值)的时候,完全不用指定变量的类型,只要一个var就解决问题了
liulun
2022-05-09
7590
ACTIVEX和OCX控件传递字符串给网页上的JS
第一步: KSDLL2.idl文件中 dispinterface _DKSDLL2 { properties: methods: [id(1)] void CheckIt(); [id(2)] BSTR GetIt(); }; 第二步: KSDLL2Ctrl.h文件中 protected: void CheckIt(void); BSTR GetIt(); 第三步: KSDLL2Ctrl.cpp文件中 // 调度映射 BEGIN_DISPATCH_MAP(CKSDLL2Ctr
liulun
2022-05-09
2.2K0
ASP.NET WebAPI 路由规则与POST数据
Multiple actions were found that match the request:
liulun
2022-05-09
7820
ASP.NET MVC 4.0 CKEditor jquery 文章管理 图片上传 解决方案
文章修改,新增业务的C#代码 [HttpPost] [ValidateInput(false)] public ActionResult AddNew(FormCollection values) { var db = new ddrDBEntities(); XinWen obj = new XinWen(); if (!string.IsNullOrEmpty(Request["id"
liulun
2022-05-09
6960
ASP.NET MVC 超简单 分页
C# public ActionResult BiaoDan(int? page) { int pageindex = 1;
liulun
2022-05-09
2K0
C#操作Excel
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Office.Interop.Excel; using System.Reflection; namespace ListToExcel { class Program { static List<objtype> objs = new List<objtype>();
liulun
2022-05-09
3570
UDP广播的方式收发数据(C#)
发送数据: /// <summary> /// 发送信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, EventArgs e) { UdpClient client = new U
liulun
2022-05-09
1.1K0
工作流学习笔记-给工作流传递参数
C#->控制台顺序工作流->拖放code->双击生成事件处理程序 using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Collections; using System.Drawing; using System.Linq; using System.Workflow.ComponentModel.Compiler; using System.Workflow.Componen
liulun
2022-05-09
3860
C#类特性和属性特性
using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Reflection; namespace ConsoleApplication6 { /// <summary> /// AttributeTargets.Class可以对类应用属性 /// Inherited能否由派生类或重写成员继承
liulun
2022-05-09
5200
C#中两个问号的双目运算符
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Con
liulun
2022-05-09
6130
工作流学习笔记-HelloWorld
C#->控制台工作流->顺序工作流->拖放code->生成事件处理程序 代码如下 using System; using System.Workflow.Activities; namespace wf1 { public sealed partial class Workflow1: SequentialWorkflowActivity { public Workflow1() { InitializeComponent();
liulun
2022-05-09
1930
C++学习笔记-类定义的注意事项和C#的区别
2: 成员函数可以放在类的外部定义 但必须在类的内部做声明 在类外部做定义的时候必须形如这样: bool YorClassName::YorMethordName(int param) { //.... return true; } 就如同C#中的完全限定名 YorClassName::YorMethordName 如果在类中定义成员函数的话,就不用这样了
liulun
2022-05-09
2160
C++模板之函数模板
模板和C#的泛型很相似! 如下代码 #include <iostream> #include <string> using namespace std; template<typename T> T maxValue(T value1,T value2) { if(value1>value2) { return value1; } return value2; } int main() { cout<<maxValue(1,3)<<endl;
liulun
2022-05-09
8330
C#程序删除自身
 通过动态创建批处理文件 把程序运行的当前目录下的所有文件全部删除 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Configuration; using System.Runtime.InteropServices; using System.Windows.Forms; namespace killself {     
liulun
2022-05-09
3860
为LINQ服务的C#新特性总结篇---扩展方法,匿名委托,lambda表达式,Action委托,Func委托,Linq中的order by,top和sum函数
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; namespace ConsoleApplication1 {     static class Program     {         static void Main(string[] args)         {             //Predicate        
liulun
2022-05-09
6220
DevExpress的GridControl的实时加载数据解决方案(取代分页)
传统的Winform(不使用第三方控件)针对DataGridView的实时加载数据的文章请看这里
liulun
2022-05-09
1.1K0
C#使用反射特性构建访问者模式
代码出自《c#3.0设计模式》 两个结构的对象 class Element { public Element Next { get; set; } public Element Part { get; set; } public Element() { } public Element(Element next) { Next = next; } } cl
liulun
2022-05-09
2460
Linq:基本语法form ,select, where(2)
一:基础知识 1:linq查询表达式必须以from子句开头 2:linq查询表达式必须以select 或者group子句结尾 3:linq查询表达式可以包含0个或多个where子句,一个where子句可以包含1个或多个布尔条件表单时
liulun
2022-05-09
7870
微软要放弃Electron了???聊聊WebView2
有好几个公众号发文说“微软要放弃Electron了”,实际情况是微软旗下的Teams产品打算把Electron框架换成WebView2而已。接下来我就聊一下这个事情:
liulun
2021-12-28
3.8K0
C# WPF获取任务栏时间区域的Rectangle
[StructLayout(LayoutKind.Sequential)] public struct WindowRect { public int left; public int top; public int right; public int bottom; } [DllImport("user32.dll")] priv
liulun
2018-01-12
7380
点击加载更多
社区活动
【纪录片】中国数据库前世今生
穿越半个世纪,探寻中国数据库50年的发展历程
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档