public static void ReadPrefix(this MsgPackReader reader, TypePrefixes prefix) { if (!reader.Read() || reader.Type != prefix) { throw new InvalidOperationException(Resources.ParseError); } }
internal const string StructsAsClassesFiles = "StructsAsClasses.txt"; // project AND plugin public CodeGeneratorSettings() { Prefixes = new TypePrefixes(); Namespaces = new ManagedNamespaces(); FolderEmulation = new ManagedFolderEmulation(); CollapsedMembers = new List <CollapsedMemberSettings>(); StructsAsClassesByPath = new HashSet <string>(); VarNames = new VarNameSettings(); LoadDefaults(); }
public bool IsBinary() { TypePrefixes type = Type; return(type == TypePrefixes.Bin8 || type == TypePrefixes.Bin16 || type == TypePrefixes.Bin32); }