zoukankan      html  css  js  c++  java
  • C#应用结构体变量

    1、定义:
    /// <summary>
            
    /// 定义ITP Head信息的结构体变量(siteID、productLineID、priceType、year、period)
            
    /// </summary>

            public struct ITPHeadInfor
            
    {
                
    public int siteID;
                
    public int productLineID;
                
    public SystemEnum.PriceType priceType;
                
    public int year;
                
    public int period;
            }

    2、应用
    protected static List<CommonFunction.ITPHeadInfor> ms_ITPHeadIDs = new List<CommonFunction.ITPHeadInfor>();

    public static List<CommonFunction.ITPHeadInfor> ITPHeadIDs
            
    {
                
    get
                
    {
                    
    return ms_ITPHeadIDs;
                }

            }

    CommonFunction.ITPHeadInfor headInfor = new CommonFunction.ITPHeadInfor();
                    headInfor.year 
    = year;
                    headInfor.siteID 
    = siteID;
                    headInfor.productLineID 
    = productLineID;
                    headInfor.priceType 
    = (SystemEnum.PriceType)priceType;
                    headInfor.period 
    = period;

                    
    //添加到List供到Oracle的使用
                    if (!ms_ITPHeadIDs.Contains(headInfor))
                    
    {
                        ms_ITPHeadIDs.Add(headInfor);
                    }
  • 相关阅读:
    redis事务
    redis杂项
    redis的发布订阅
    redis持久化
    redis常用配置参考.txt
    python语法流程控制
    用户交互与数据类型
    编程语言与Python介绍
    计算机的五大组成部分
    jieba库的基本介绍及爬虫基本操作
  • 原文地址:https://www.cnblogs.com/songsh96/p/804411.html
Copyright © 2011-2022 走看看