| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // System.ComponentModel.LicFileLicenseProvider.cs
- //
- // Authors:
- // Martin Willemoes Hansen ([email protected])
- // Andreas Nahr ([email protected])
- //
- // (C) 2003 Martin Willemoes Hansen
- // (C) 2003 Andreas Nahr
- //
- namespace System.ComponentModel
- {
- public class LicFileLicenseProvider : LicenseProvider
- {
- public LicFileLicenseProvider()
- {
- }
- [MonoTODO]
- public override License GetLicense (LicenseContext context,
- Type type,
- object instance,
- bool allowExceptions)
- {
- throw new NotImplementedException();
- }
- protected virtual string GetKey (Type type)
- {
- return (type.FullName + " is a licensed component.");
- }
- protected virtual bool IsKeyValid (string key, Type type)
- {
- if (key == null)
- return false;
- return key.Equals (GetKey (type));
- }
- }
- }
|