コード例 #1
0
        /// <summary>
        /// Initializes all builders by creating a cache of pre-built properties
        /// for ValueTypes. This should be called after any DataTypeExtensions have
        /// been loaded and MUST be called before NitroCast runs.
        /// </summary>
        public static void RefreshCache()
        {
            typeCache.Clear();

            foreach (KeyValuePair <string, ValueTypeBuilder> builder in builders)
            {
                ValueTypeCollection valueTypes = DataTypeManager.Make(builder.Value);
                typeCache.Add(builder.Value, valueTypes);
            }
        }