我还是新手,并试图创建一个在函数中使用的列表,并希望尽可能小地保留它,这恰好是logBase x y.但是我无法将logBase变成我可以在此列表中使用的东西.
[1 ..(logBase xy)]
有什么建议?
我有一个项目的arraylist,其中只有十个变量.但这些项目有很多代码,我想添加更多.我很好奇这将如何影响我的结构的大小.我的直觉告诉我每个人都有一个堆栈,但随着参数的传递和东西,我可能不认为我不确定.那么大致只是代码添加到我的数据结构中多少钱?
出于某种原因,我真的很挣扎.我是wpf的新手,我似乎无法找到理解这个简单问题所需的信息.
我试图将文本框绑定到一个字符串,即程序活动的输出.我为字符串创建了一个属性,但是当属性更改时,文本框不会.我有一个listview的问题,但创建了一个刷新listview的调度程序.
我必须忽略一些重点,因为我认为使用wpf的一个好处是不必手动更新控件.我希望有人能把我送到正确的方向.
在windowMain.xaml.cs中
private string debugLogText = "initial value";
public String debugLog {
get { return debugLogText; }
set { debugLogText = value; }
}
Run Code Online (Sandbox Code Playgroud)
在windowMain.xaml中
x:Name="wndowMain"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
DataContext="{Binding RelativeSource={RelativeSource Self}}"
<TextBox Name="txtDebug" Text="{Binding ElementName=wndowMain, Path=debugLog}" />
Run Code Online (Sandbox Code Playgroud) 我无法在运行时获取应用程序的可执行文件的路径.此应用程序由另一个可执行文件启动,每当我尝试使用Application.ExecutablePath时,我都会获得该应用程序的路径,而不是我的.
Dim aPath1 As String = Application.ExecutablePath()
Dim aPath2 As String = Application.StartupPath()
Run Code Online (Sandbox Code Playgroud)
在C#中它会是
string aPath1 = Application.ExecutablePath;
string aPath2 = Application.StartupPath;
Run Code Online (Sandbox Code Playgroud)
这些都没有给我这个程序的路径,其中这两行被执行,它们只告诉程序启动了什么程序.
非常感谢任何帮助,谢谢你提前.