Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: Load .srt file into datagrid Pin
ZinusMero15-Jun-14 15:20
ZinusMero15-Jun-14 15:20 
Questioninline conditional asp.net c# Pin
greyhawk11-Jun-14 10:38
greyhawk11-Jun-14 10:38 
AnswerRe: inline conditional asp.net c# Pin
OriginalGriff11-Jun-14 21:37
mveOriginalGriff11-Jun-14 21:37 
AnswerRe: inline conditional asp.net c# Pin
Swinkaran12-Jun-14 15:51
professionalSwinkaran12-Jun-14 15:51 
QuestionObserver pattern for real time scenario Pin
Suraj Rai11-Jun-14 8:52
Suraj Rai11-Jun-14 8:52 
AnswerRe: Observer pattern for real time scenario Pin
Pete O'Hanlon11-Jun-14 10:04
mvePete O'Hanlon11-Jun-14 10:04 
Questionabstract class Pin
Member 1087879011-Jun-14 8:37
Member 1087879011-Jun-14 8:37 
AnswerRe: abstract class Pin
Pete O'Hanlon11-Jun-14 8:55
mvePete O'Hanlon11-Jun-14 8:55 
An abstract class must be inherited from to be usable. What this means is that it's possible to define certain functionality that is common in inherited classes, saving you from having to write it again. A common example, in WPF, is a base ViewModel class that implements INotifyPropertyChanged:
C#
public abstract class BaseViewModel : INotifyPropertyChanged
{
  public event PropertyChangedEventHandler PropertyChanged;
  protected void RaisePropertyChanged(string property)
  {
    PropertyChangedEventHandler handler = PropertyChanged;
    if (handler != null)
    {
      handler(this, new PropertyChangedEventArgs(property));
    }
  }
}
Now, you're free to use this wherever you need:
C#
public class MyViewModel : BaseViewModel
{
  private string _name;
  public string Name
  {
    get { return _name; }
    set
    {
      if (_name != value)
      {
        _name = value;
        RaisePropertyChanged("Name");
      ]
    }
  }
}


modified 11-Jun-14 15:18pm.

SuggestionRe: abstract class Pin
Richard Deeming11-Jun-14 9:15
mveRichard Deeming11-Jun-14 9:15 
GeneralRe: abstract class Pin
Pete O'Hanlon11-Jun-14 9:18
mvePete O'Hanlon11-Jun-14 9:18 
AnswerRe: abstract class Pin
PIEBALDconsult11-Jun-14 9:43
mvePIEBALDconsult11-Jun-14 9:43 
QuestionShowing timezone along with time Pin
nitin_ion11-Jun-14 7:59
nitin_ion11-Jun-14 7:59 
AnswerRe: Showing timezone along with time Pin
Pete O'Hanlon11-Jun-14 9:09
mvePete O'Hanlon11-Jun-14 9:09 
QuestionOutput to Promotion LCD from a PC Pin
Jassim Rahma11-Jun-14 4:19
Jassim Rahma11-Jun-14 4:19 
AnswerRe: Output to Promotion LCD from a PC Pin
OriginalGriff11-Jun-14 5:03
mveOriginalGriff11-Jun-14 5:03 
AnswerRe: Output to Promotion LCD from a PC Pin
Dave Kreskowiak11-Jun-14 7:49
mveDave Kreskowiak11-Jun-14 7:49 
AnswerRe: Output to Promotion LCD from a PC Pin
Chris Quinn11-Jun-14 21:17
Chris Quinn11-Jun-14 21:17 
QuestionWinForm DataGridView - Unable to convert MySql DateTime To System.DateTime Pin
Marnus Steyn11-Jun-14 4:14
Marnus Steyn11-Jun-14 4:14 
AnswerRe: WinForm DataGridView - Unable to convert MySql DateTime To System.DateTime Pin
PIEBALDconsult11-Jun-14 4:54
mvePIEBALDconsult11-Jun-14 4:54 
GeneralRe: WinForm DataGridView - Unable to convert MySql DateTime To System.DateTime Pin
Marnus Steyn11-Jun-14 5:03
Marnus Steyn11-Jun-14 5:03 
GeneralRe: WinForm DataGridView - Unable to convert MySql DateTime To System.DateTime Pin
PIEBALDconsult11-Jun-14 5:29
mvePIEBALDconsult11-Jun-14 5:29 
GeneralRe: WinForm DataGridView - Unable to convert MySql DateTime To System.DateTime Pin
Marnus Steyn11-Jun-14 5:38
Marnus Steyn11-Jun-14 5:38 
GeneralRe: WinForm DataGridView - Unable to convert MySql DateTime To System.DateTime Pin
Bernhard Hiller11-Jun-14 20:43
Bernhard Hiller11-Jun-14 20:43 
GeneralRe: WinForm DataGridView - Unable to convert MySql DateTime To System.DateTime Pin
PIEBALDconsult12-Jun-14 2:39
mvePIEBALDconsult12-Jun-14 2:39 
QuestionGetNetworkUsageAsync() not working in Windows Store App on Windows 8.1 Pin
Sharath C V11-Jun-14 1:58
professionalSharath C V11-Jun-14 1:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.