public static GetDisplayName ( |
||
type | ||
Результат | string |
protected override void ReadValue(PsdReader reader, object userData, out IProperties value) { Properties props = new Properties(); while (reader.Position < this.EndPosition) { reader.ValidateSignature(); string resourceID = reader.ReadInt16().ToString(); string name = reader.ReadPascalString(2); long length = reader.ReadInt32(); length += (length % 2); ResourceReaderBase resourceReader = ReaderCollector.CreateReader(resourceID, reader, length); string resourceName = ReaderCollector.GetDisplayName(resourceID); props[resourceName] = resourceReader; } value = props; }
protected override void ReadData(PsdReader reader, object userData) { var list = new List <IResourceBlock>(); while (reader.Position < this.EndPosition) { reader.ValidateSignature(); string resourceID = reader.ReadInt16().ToString(); string name = reader.ReadPascalString(2); long length = reader.ReadInt32(); length += (length % 2); var resourceReader = ReaderCollector.CreateReader(resourceID, reader, length); string resourceName = ReaderCollector.GetDisplayName(resourceID); list.Add(resourceReader); } Resources = list.ToArray(); }