mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* ISite.cs: Fixed attributes, fixed header * ITypeDescriptorContext.cs: Fixed attributes, formatting corrections * WarningException.cs: Fixed attributes, formatting corrections * AttributeCollection.cs: Fixed attributes * DesignerSerializationVisibility.cs: Fixed attributes * TypeConverter.cs: Fixed attributes * MarshalByValueComponent.cs: * IComponent.cs: Fixed attributes, supports .Net 1.0 and 1.1 * DescriptionAttribute.cs: * DesignerCategoryAttribute.cs: * DoubleConverter.cs: * EditorBrowsableAttribute.cs: * EventDescriptorCollection.cs: * PropertyChangedEventHandler.cs: * RefreshEventArgs.cs: * StringConverter.cs: * DefaultValueAttribute.cs: Reformatted following style guidelines * License.cs: Removed unused MonoTODOs * LicenseContext.cs: Implemented * LicenseException.cs: Implemented * LicenseProvider.cs: Removed unused MonoTODOs and unneccesary Finalizer * LicenseUsageMode.cs: Fixed enum * RefreshProperties.cs: Fixed enum * LicFileLicenseProvider.cs: Implementation added * ExtenderProvidedPropertyAttribute.cs: Implementation added, formatting corrections * ExpandableObjectConverter.cs: Implemented * ComponentConverter.cs: Implemented svn path=/trunk/mcs/; revision=15865
43 lines
834 B
C#
43 lines
834 B
C#
//
|
|
// 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));
|
|
}
|
|
}
|
|
}
|