コード例 #1
0
        public ApplicationsSurrogateSelector()
        {
            ApplicationsSerializationSurrogate ass = new ApplicationsSerializationSurrogate();

            base.AddSurrogate(typeof(Growl.RegisteredApplication),
                              new StreamingContext(StreamingContextStates.All),
                              ass);

            base.AddSurrogate(typeof(Growl.RegisteredNotification),
                              new StreamingContext(StreamingContextStates.All),
                              ass);
        }
コード例 #2
0
        public ApplicationsSurrogateSelector()
        {
            ApplicationsSerializationSurrogate ass = new ApplicationsSerializationSurrogate();

             base.AddSurrogate(typeof(Growl.RegisteredApplication),
               new StreamingContext(StreamingContextStates.All),
               ass);

             base.AddSurrogate(typeof(Growl.RegisteredNotification),
               new StreamingContext(StreamingContextStates.All),
               ass);
        }