/// <summary>Instantiates the required object.</summary> /// <param name="classFullName">The full name (namespace + class name) of the task class.</param> /// <returns>The new object.</returns> public MyCustomObject CreateCustomObject() { MyCustomObject instance = new MyCustomObject(); // do whatever you want with the instance here return(instance); }
public static MyCustomObject GetTableNameHere(object Parameter) { //Pre-step: Replace the general object parameter with the appropriate data type parameter for retrieving a specific item from the specific database table. string SQLStatement = String.Empty; //Change the MyCustomObject references to your customer business object MyCustomObject objTemp = new MyCustomObject(); //Step #1: Add code to call the appropriate method from the inherited AccessDataSQLServer class //To return a database connection object //Step #2: Code logic to create appropriate SQL Server objects calls // Code logic to retrieve data from database // Add Try..Catch appropriate block and throw exception back to calling program //Step #3: Return the objtemp variable back to the calling UI return(objTemp); }
public void reset() { myCustomString = "Default"; myCustomObject = new MyCustomObject(0, 0, 0); }
// PUBLIC /// <summary> /// Reset this instance. /// </summary> public void reset () { myCustomString = ""; myCustomObject = new MyCustomObject( 11.11f, 12.12f, 13.13f); }
// PUBLIC /// <summary> /// Reset this instance. /// </summary> public void reset() { myCustomString = ""; myCustomObject = new MyCustomObject(11.11f, 12.12f, 13.13f); }
public MyException(MyCustomObject customObject) { CustomObject = customObject; }
public MyException(string message, Exception inner, MyCustomObject customObject) : base(message, inner) { CustomObject = customObject; }
public MyException(string message, MyCustomObject customObject) : base(message) { CustomObject = customObject; }