zoukankan      html  css  js  c++  java
  • 一些基础知识

    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.IO;
    using System.Runtime.Serialization;
    using System.Runtime.Serialization.Formatters.Binary;
    using System.Xml.Serialization;


    namespace 基础知识
    {
        
    class Program
        
    {
            
    static void Main(string[] args)
            
    {
            }

            
    * 基础知识

            
    *

            
    * 枚举是引用类型并且是个抽象类,枚举提供了处理相关联的常数集的快捷途径,是强类型的分类结构

            
    * 序列化的目的是保存对象的状态,以便可以在需要时重新创建对象

            
    *

        }

        [Serializable]
        
    public class UserInfo
        
    {
            
    public string Name;
            [XmlElement(ElementName 
    = "MyAge")]//改变xml序列化的字段名
            [NonSerialized]//仅二进制序列化时可以防止被序列化
            public int Age;
        }

    }

    Code
    Code
  • 相关阅读:
    VIM 用正则表达式,非贪婪匹配,匹配竖杠,竖线, 匹配中文,中文正则,倒数第二列, 匹配任意一个字符 :
    中国科学院图书馆分类法
    让进程在后台可靠运行的几种方法 nohup,setsid,&,disown,CTRL-z ,screen
    Exception Handling Statements (C# Reference)
    ChannelFactory.Endpoint 上的地址属性为空。ChannelFactory 的终结点必须指定一个有效的地址。
    .NET中六个重要的概念:栈、堆、值类型、引用类型、装箱和拆箱
    WCF Host中的BaseAddress 和 Endpoint中的Address的区别
    使用vs自带的wcf配置工具
    Automatic Code Generation-->Implement Interface
    Learning WCF Chapter1 Exposing Multiple Service Endpoints
  • 原文地址:https://www.cnblogs.com/hbreset/p/1250066.html
Copyright © 2011-2022 走看看