source: trunk/CrypPlugins/PeerToPeerJobs/IJobPart.cs @ 1785

Last change on this file since 1785 was 1448, checked in by Sven Rech, 12 years ago

replaced all BigInteger stuff with the new BigInteger class from .net 4.0

But there are still problems with some plugins (Keysearcher, BigInteger Operations...)

File size: 1.4 KB
1/* Copyright 2010 Team CrypTool (Christian Arnold), Uni Duisburg-Essen
3   Licensed under the Apache License, Version 2.0 (the "License");
4   you may not use this file except in compliance with the License.
5   You may obtain a copy of the License at
9   Unless required by applicable law or agreed to in writing, software
10   distributed under the License is distributed on an "AS IS" BASIS,
11   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   See the License for the specific language governing permissions and
13   limitations under the License.
16using System;
17using System.Collections.Generic;
18using System.Linq;
19using System.Text;
20using Cryptool.PluginBase.Miscellaneous;
21using System.Numerics;
23namespace Cryptool.Plugins.PeerToPeer.Jobs
25    /// <summary>
26    /// please implement additionally a static Deserialize method and a constructor
27    /// with a parameter byte[], where you can Deserialize a byte[] representation
28    /// of this class. The static Deserialize Method could call than the byte[] constructor!!!
29    /// </summary>
30    /// <typeparam name="JobType"></typeparam>
31    public interface IJobPart
32    {
33        BigInteger JobId { get; set; }
34        byte[] Serialize();
35        //IJobPart<JobType> Deserialize(byte[] serializedJobPart);
36    }
Note: See TracBrowser for help on using the repository browser.