Code:
public abstract class SomeBaseClass<U,V> { }
Code:
public abstract class SomeOtherBaseClass<T1, T2> where T1 : SomeBaseClass<U,V> { private readonly T1 _someBaseClass; public SomeOtherBaseClass(T1 someBaseClass) {
public abstract class SomeBaseClass<U,V> { }
public abstract class SomeOtherBaseClass<T1, T2> where T1 : SomeBaseClass<U,V> { private readonly T1 _someBaseClass; public SomeOtherBaseClass(T1 someBaseClass) {
private void btnXML_Click(object sender, EventArgs e) { //validate data pior to create XML File [B]if ((this.txtXMLFolder.Text == "" ) || (this.txtXMLName.Text == "") || (this.lblCustID.Text == ""))[/B] { string txtmsg = "Either one of these data is missing" + "\n"; txtmsg += "Customer Selection" + "\n"; txtmsg += "XML
public void TestStoreAndRetrieve() { Factory factory = Factory.GetInstance(); IBookService bookSvc = (IBookService)factory.GetService(typeof(IBookService).Name); Book book1 = new Book("9781426829758", "Stock", "Dark Rival", "Masters of Time", "Brenda
public class BookSvcBinImpl : IBookService { public void StoreBook(Book bookX) { IList<Book> listBooks = new IList<Book>(); FileStream saveStream = new FileStream("Book.bin", FileMode.Create, FileAccess.Write); IFormatter formatter = new BinaryFormatter(); formatter.Serialize(saveStream,
for (int i = 0; i < resultsArray.Rank + 1; i++) { for (int j = 0; j < resultsArray.Length / (resultsArray.Rank + 1); j++) { Console.Write(resultsArray[i, j]); } Console.WriteLine(); }
Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application(); Microsoft.Office.Interop.Word.Document wordDoc = wordApp.Documents.Add(...);
ret = objOCR.OCRSetOutputHandlerX(AddressOf myOutputHandler)
ret = objOCR.OCRSetOutputHandlerX(new MyDelegateType(myOutputHandler))
private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Node.Parent == null) { MessageBox.Show("Root node"); } else { MessageBox.Show(e.Node.Text); }
try { com = new OleDbCommand("Select Max(sid) from Students", con); TextBox1.Text = com.ExecuteScalar().ToString(); Label6.Text = "New Id Ok"; } catch(Exception ex){ Label6.Text = ex.ToString(); }
Array.Resize(ref array, newsize)
List<string> myCollection = new List<string>(); private void Combobox_SelectedIndexChanged(object sender, EventArgs e) { SqlCommand getCar = new SqlCommand("select Car from myTable where carID = '"+ 3 +"' ", myConnection); myCar = getCar.ExecuteNoneQuery();
for (int i = 0; i < fr.Length; i++) { if (fr[i] < max) { max = (int)Math.Ceiling([B]fr[i][/B]); } }
ad.Fill(dt);
public partial class Form1 : Form { private AssemblyLoader _aLoader = null; public Form1() { InitializeComponent(); AppDomain _domain = AppDomain.CreateDomain("Remote Load"); _aLoader = (AssemblyLoader)_domain.CreateInstanceAndUnwrap(
Leave a comment: