.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

46 lines
989 B

// Copyright (c) AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System.Collections.Generic;
namespace Ricciolo.StylesExplorer.MarkupReflection
{
public class KeyMapping
{
List<object> staticResources;
public List<object> StaticResources {
get { return staticResources; }
}
public bool HasStaticResource(int identifier)
{
return staticResources != null && staticResources.Count > identifier;
}
public string KeyString { get; set; }
public bool Shared { get; set; }
public bool SharedSet { get; set; }
public int Position { get; set; }
public KeyMapping()
{
this.staticResources = new List<object>();
this.Position = -1;
}
public KeyMapping(string key)
{
this.KeyString = key;
this.staticResources = new List<object>();
this.Position = -1;
}
public override string ToString()
{
return '"' + KeyString + '"';
}
}
}