如何正確設置accessBehavior變量?我該如何正確施放它?
public sealed class FileAccess : ProjectAccess, IAccess<File>
interface IAccess<T> where T : ITfsType
public abstract class Access<T>
{
private IAccess<T> accessBehavior;
public Access()
{
FileAccess fa = new FileAccess();
accessBehavior = //what to assign?
}
}
這很混亂,你有一個名爲ITfsType的類型爲`string`的參數和一個名爲ITfsType的類型? – 2011-12-14 16:57:01