public IEnumerable <string> GenerateInterfacePropertyMethods(string sourceNamespace, GenClass genClass) { yield return(DtGenUtil.GenInterfaceGetMethod(_prop, "IJsArrayNumber")); yield return(DtGenUtil.GenInterfaceSetMethod(_prop, "Iterable<Double>", genClass)); yield return(DtGenUtil.GenInterfaceSetMethod(_prop, "IJsArrayNumber", genClass)); }
public IEnumerable <string> GenerateInterfacePropertyMethods(string sourceNamespace, GenClass genClass) { yield return(DtGenUtil.GenInterfaceGetMethod(_prop, string.Format("IJsArray<I{0}>", _prop.PropType.GenericTypeArguments[0].Name))); yield return(DtGenUtil.GenInterfaceSetMethod(_prop, string.Format("Iterable<I{0}>", _prop.PropType.GenericTypeArguments[0].Name), genClass)); yield return(DtGenUtil.GenInterfaceSetMethod(_prop, string.Format("IJsArray<I{0}>", _prop.PropType.GenericTypeArguments[0].Name), genClass)); }
public IEnumerable <string> GenerateInterfacePropertyMethods(string sourceNamespace, GenClass genClass) { if (_prop.CanRead) { yield return(DtGenUtil.GenInterfaceGetMethod(_prop, string.Format("List<{0}>", _prop.PropType.GenericTypeArguments[0].Name))); } if (_prop.CanWrite) { yield return(DtGenUtil.GenInterfaceSetMethod(_prop, string.Format("Iterable<{0}>", _prop.PropType.GenericTypeArguments[0].Name), genClass)); } }
public IEnumerable <string> GenerateInterfacePropertyMethods(string sourceNamespace, GenClass genClass) { yield return(DtGenUtil.GenInterfaceGetMethod(_prop, "short")); yield return(DtGenUtil.GenInterfaceSetMethod(_prop, "short", genClass)); }