예제 #1
0
파일: Body.cs 프로젝트: mrmorgan/Pdfl
 public Object GetIndirectObject(uint number, uint generation)
 {
     var hashCode = new Object {Generation = generation, Number = number}.GetHashCode();
     Object obj;
     IndirectObjects.TryGetValue(hashCode, out obj);
     return obj;
 }
예제 #2
0
 public void SetByName(string key, Object value)
 {
     var keyObject = GetByName(key);
     if (keyObject == null)
     {
         keyObject = new NameObject {Value = key};
     }
     Values[keyObject] = value;
 }