typeinitializeexception

TypeInitializeException on MVVM pattern

System.TypeInitializationException was unhandled Message=The type initializer for 'SmartHomeworkOrganizer.ViewModels.MainViewModel' threw an exception. Source=SmartHomeworkOrganizer TypeName=SmartHomeworkOrganizer.ViewModels.MainViewModel StackTrace: at SmartHomeworkOrganizer.ViewModels.MainViewModel..ctor() at Smar...

Type InTialization Exception

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TypeIntailization_Exception { class TypeInit { // Static constructor static TypeInit() { } static readonly TypeInit instance = new TypeInit(); public static TypeInit Instance ...