コード例 #1
0
 public static void ReadPrefix(this MsgPackReader reader, TypePrefixes prefix)
 {
     if (!reader.Read() || reader.Type != prefix)
     {
         throw new InvalidOperationException(Resources.ParseError);
     }
 }
コード例 #2
0
        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();
        }
コード例 #3
0
        public bool IsBinary()
        {
            TypePrefixes type = Type;

            return(type == TypePrefixes.Bin8 || type == TypePrefixes.Bin16 || type == TypePrefixes.Bin32);
        }