/// <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; } }
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; }
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; }
public KArrayType(KType underlyingType) { this.nativeType = underlyingType.NativeType.MakeArrayType(); this.underlyingType = underlyingType; this.helper = Activator.CreateInstance(typeof(ArrayHelper <>).MakeGenericType(underlyingType.NativeType)) as ArrayHelper; }
public static TypeValidationResult Valid(KType type) { return(new TypeValidationResult(type)); }
private TypeValidationResult(KType type) { Message = String.Empty; Type = type; }