示例#1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="_stockCode">股票代码</param>
 /// <param name="type">K线的周期类型</param>
 /// <returns>返回GIF K线图字节数组</returns>
 public static byte[] GetStockKImage(string _stockCode,KType type)
 {
     string stockCode = getStockCode(_stockCode);
     using(ChinaStock.ChinaStockWebServiceSoapClient client=new ChinaStock.ChinaStockWebServiceSoapClient())
     {
         byte[] bys = client.getStockImage_kByteByCode(stockCode,type.ToString());
         return bys;
     } 
 }
示例#2
0
文件: TypeOf.cs 项目: jowie94/Kermit
        public override void Execute(FunctionCallbackInfo info)
        {
            if (info.Length != 1)
            {
                throw new ArgumentException("Expecting one parameter");
            }
            object obj = Cast <object>(info[0]);
            KType  ret = new KType(obj.GetType());

            info.ReturnValue.Value = ret;
        }
示例#3
0
 public KSchemaField(string name, KType type, string alias, int index,
                     bool isSystem, object defaultValue, bool isNullable, bool isReadonly, bool isIndexed, bool isUnique, bool isDeleted)
 {
     Name         = name;
     Type         = type;
     Alias        = alias;
     Index        = index;
     IsSystem     = isSystem;
     DefaultValue = defaultValue;
     IsNullable   = isNullable;
     IsReadonly   = isReadonly;
     IsIndexed    = isIndexed;
     IsUnique     = isUnique;
     IsDeleted    = isDeleted;
 }
示例#4
0
文件: KArrayType.cs 项目: jonrp/Koios
 public KArrayType(KType underlyingType)
 {
     this.nativeType     = underlyingType.NativeType.MakeArrayType();
     this.underlyingType = underlyingType;
     this.helper         = Activator.CreateInstance(typeof(ArrayHelper <>).MakeGenericType(underlyingType.NativeType)) as ArrayHelper;
 }
示例#5
0
 public static TypeValidationResult Valid(KType type)
 {
     return(new TypeValidationResult(type));
 }
示例#6
0
 private TypeValidationResult(KType type)
 {
     Message = String.Empty;
     Type    = type;
 }